Omron TJ2-MC02 Hardware Reference Manual page 243

Trajexia machine control system
Table of Contents

Advertisement

Hardware reference
The required command code must be written to the VR location mapped to
the Command word in the Command area. The command is executed by
setting the EXE flag in the Control word in the Command area.
Example
The following example sends the "Switch scene" command to the FQ-M.
VR(101)=$00301000 'Command
VR(102)=3 'Scene number
SET_BIT(0,100) 'Execute command: bit 0 of VR(100)
WAIT UNTIL READ_BIT(0,200)=ON 'Wait for FLG bit to be set
CLEAR_BIT(0,100)
WAIT UNTIL READ_BIT(0,200)=OFF 'Wait for FLG bit to be cleared
If successful VR(202) (Response code) contains 0. When the command failed
VR(202) contains -1.
Related BASIC commands
The following BASIC commands are related to the FQ-M:
ETHERCAT
For more information, refer to the Trajexia Programming Manual
HARDWARE REFERENCE MANUAL
237

Advertisement

Table of Contents
loading

Table of Contents