![Omron 3G3AX-MX2-MRT Скачать руководство пользователя страница 243](http://html.mh-extra.com/html/omron/3g3ax-mx2-mrt/3g3ax-mx2-mrt_hardware-reference-manual_742301243.webp)
Hardware reference
HARDWARE REFERENCE MANUAL
237
Revision 5.0
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.
Related BASIC commands
The following BASIC commands are related to the FQ-M:
•
ETHERCAT
For more information, refer to the Trajexia Programming Manual
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.