Group Configuration flags
The Application objects are assigned to groups with the Group-Flags. The Group-Flags for Station interrogation and Count transfer are defined as follows:
- Station interrogation: All Application objects, which are assigned to the group 1 to 16, belog automatically to the global group: IEC870_GRP_INROGEN;
- Count transfer: All Application objects, which are assigned to the group 1 to 4, belog automatically to the global group: IEC870_GRP_REQCOGEN;
You can prevent the automatical assignment of the application objects to the global group if you mask the according bits during the configuration
Examples:
IEC870_GRP_INRO3 AND NOT IEC870_GRP_INROGEN
or
IEC870_GRP_REQCO1 AND NOT IEC870_GRP_REQCOGEN
Constant | Value | Description |
---|---|---|
Station interrogation | ||
IEC870_GRP_INROGEN | 16#00000001 | Interrogated by general interrogation (station or global) |
IEC870_GRP_INRO1 | 16#00000003 | Interrogated by group 1 interrogation |
IEC870_GRP_INRO2 | 16#00000005 | Interrogated by group 2 interrogation |
IEC870_GRP_INRO3 | 16#00000009 | Interrogated by group 3 interrogation |
IEC870_GRP_INRO4 | 16#00000011 | Interrogated by group 4 interrogation |
IEC870_GRP_INRO5 | 16#00000021 | Interrogated by group 5 interrogation |
IEC870_GRP_INRO6 | 16#00000041 | Interrogated by group 6 interrogation |
IEC870_GRP_INRO7 | 16#00000081 | Interrogated by group 7 interrogation |
IEC870_GRP_INRO8 | 16#00000101 | Interrogated by group 8 interrogation |
IEC870_GRP_INRO9 | 16#00000201 | Interrogated by group 9 interrogation |
IEC870_GRP_INRO10 | 16#00000401 | Interrogated by group 10 interrogation |
IEC870_GRP_INRO11 | 16#00000801 | Interrogated by group 11 interrogation |
IEC870_GRP_INRO12 | 16#00001001 | Interrogated by group 12 interrogation |
IEC870_GRP_INRO13 | 16#00002001 | Interrogated by group 13 interrogation |
IEC870_GRP_INRO14 | 16#00004001 | Interrogated by group 14 interrogation |
IEC870_GRP_INRO15 | 16#00008001 | Interrogated by group 15 interrogation |
IEC870_GRP_INRO16 | 16#00010001 | Interrogated by group 16 interrogation |
Counter interrogation | ||
IEC870_GRP_REQCOGEN | 16#00020000 | Interrogated by general counter request |
IEC870_GRP_REQCO1 | 16#00060000 | Interrogated by group 1 counter request |
IEC870_GRP_REQCO2 | 16#000A0000 | Interrogated by group 2 counter request |
IEC870_GRP_REQCO3 | 16#00120000 | Interrogated by group 3 counter request |
IEC870_GRP_REQCO4 | 16#00220000 | Interrogated by group 4 counter request |
IEC870_GRP_LOCFREEZE | 16#00400000 | Enable cyclic local freeze of counter value |
IEC870_GRP_LOCRESET | 16#00800000 | Enable cyclic local reset of counter value |
Others | ||
IEC870_GRP_IV_OFF | 16#01000000 | Don't set invalid quality bit |
IEC870_GRP_REVERSE | 16#02000000 | Object used in reverse direction (reserved) |
IEC870_GRP_SELECTCMD | 16#04000000 | Force select/execute for this point (reserved) |
not defined | 16#08000000 | not used |
IEC870_GRP_USERCMD | 16#10000000 | User command (reserved) |
IEC870_GRP_BACKGROUND | 16#20000000 | Enable background scan for this point |
IEC870_GRP_PERCYC | 16#40000000 | Enable periodic/cyclic data for this point |
IEC870_GRP_SPONTOFF | 16#80000000 | Disable event (spontanous) scanning of this point |
Requirements
Development Enviroment | Target System | PLC libraries to include |
---|---|---|
TwinCAT v2.9.0 Build >= 1030 | PC or CX (x86) | TcIEC870_5_101.Lib |
TwinCAT v2.10.0 Build >= 1301 | CX (ARM) |