Calling Sequence of Standard Interface Commands

This section introduces the calling sequence and relations of Standard Interface commands. The specific command calling sequences for the robot and PLC are introduced separately.

Commands Called in the Robot Program

Depending on the project type, the commands called in the robot program can be divided into commands related to Mech-Vision projects and commands related to Mech-Viz projects.

Commands Called in the PLC Program

The workflow of the PLC program to call commands is shown in the figure below.

../../../_images/plc_timing.png

Notes:

  1. According to the requirements of each command, the command number and the command parameters will be written to corresponding registers. For example, 101 will be written to Command, and 1 (the project ID) will be written to Vision_Project_Num.

  2. When a command is triggered, the PLC will set the value of Command_Trigger to 1, and the vision system reads the command number and parameters.

  3. After the vision system reads that Command_Trigger is 1, Trigger_Acknowledge will be set to 1.

  4. After the PLC reads that Trigger_Acknowledge is 1, Command_Trigger will be set to 0, and then the command number and parameters of the next command will be written to the corresponding registers.

  5. After the vision system reads that Command_Trigger is 0, Trigger_Acknowledge will be set to 0.

Please refer to Commands Related to Mech-Vision Projects and Commands Related to Mech-Viz Projects for the sequence of calling specific commands.