How do I enable/disable pre-configured alarms on FLIR A310 and AX8 cameras using a PLC?
It is possible to enable/disable alarms using EtherNet/IP's Pass Through Object (page 60 of Object Model Library from the download page), however we suggest you to configure the alarms using FLIR IR Monitor from the download page prior to enabling/disabling them.
The A310/AX8 alarm resources are explained in the Basic ICD from the download page, starting on page 71.
In order to enable or disable a given alarm the following Boolean registers should be changed. These registers are accessible via Pass Through Object (EtherNet/IP).
.resmon.items.<alarm#>.active
.image.sysimg.alarms.measfunc.<alarm#>.active
Pass Through Object Settings: (all settings values are given in Hexadecimal)
Service code: 0x33 (Service: Write Boolean)
Class: 0x70
Instance: 0x01
Data value: refer to examples
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)
Important: The resource string (i.e. ".resmon.items.1.active") carries the Alarm number (1), but since the register is an string value the "alarm number" should be also treated as an string, that is why "1" is converted from ASCII to "31" in HEX.
You may use the following website to convert the data value from ASCII or Decimal to Hexadecimal.
Data value examples:
Enabling alarm 1
.resmon.items.1.active TRUE
16 2e 72 65 73 6d 6f 6e 2e 69 74 65 6d 73 2e 31 2e 61 63 74 69 76 65 01
.image.sysimg.alarms.measfunc.1.active TRUE
26 2e 69 6d 61 67 65 2e 73 79 73 69 6d 67 2e 61 6c 61 72 6d 73 2e 6d 65 61 73 66 75 6e 63 2e 31 2e 61 63 74 69 76 65 01
Disabling alarm 3
.resmon.items.3.active FALSE
16 2e 72 65 73 6d 6f 6e 2e 69 74 65 6d 73 2e 33 2e 61 63 74 69 76 65 00
.image.sysimg.alarms.measfunc.3.active FALSE
26 2e 69 6d 61 67 65 2e 73 79 73 69 6d 67 2e 61 6c 61 72 6d 73 2e 6d 65 61 73 66 75 6e 63 2e 33 2e 61 63 74 69 76 65 00