Hardware reference
HARDWARE REFERENCE MANUAL
225
Revision 5.0
Related BASIC commands
The following BASIC commands are related to the FZM1:
•
ETHERCAT
For more information, refer to the Trajexia Programming Manual
Example
The following example sends the “Switch scene” command to the FZM1.
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.