How do I turn on and turn off the lamp of the FLIR AX8 using EtherNet/IP?
The lamp of the AX8 can be turned on and off through EtherNet/IP using a Pass Through Object.
Settings: (all settings value are given in Hexadecimal)
Service code: 0x33
Class: 0x70
Instance: 0x01
Data value:
a) for turning lamp ON
12 2e 73 79 73 74 65 6d 2e 76 63 61 6d 2e 74 6f 72 63 68 01
b) for turning lamp OFF
12 2e 73 79 73 74 65 6d 2e 76 63 61 6d 2e 74 6f 72 63 68 00
Understanding the data value for Service code 0x33 (Write Boolean):
The Pass Through Object is used to send Get/Set data from/to the device, even the commands or registers that are not mapped to other Objects. In other words it is possible to send any command to the device respecting the following syntax:
1st - Declare the variable length (Convert from Decimal to Hexadecimal)
2nd - Add the variable (Convert from ASCII to Hexadecimal)
3rd - Add the Boolean value (00 for False, 01 for True)
Turning the lamp ON, example:
The variable that controls the Lamp is .system.vcam.torch, which converted from ASCII to Hex is 2e 73 79 73 74 65 6d 2e 76 63 61 6d 2e 74 6f 72 63 68.
The variable length is 18 characters (Decimal), which converted to Hex is 12.
Lastly, a Boolean must be supplied and 01 represents True and 00 represents False.
So the complete data value will be 12 2e 73 79 73 74 65 6d 2e 76 63 61 6d 2e 74 6f 72 63 68 01
The following website to convert the data from ASCII or Decimal to Hexadecimal.
For more information about EtherNet/IP, please refer to the download page