Group Konfigurationsflags
Mit den Group-Flags werden Applikationsobjekte bestimmten Gruppen zugeordnet. Die Group-Flags für Stationsabfrage und Zählwertübermittlung sind auf folgende Weise definiert worden:
- Stationsabfrage: Alle Applikationsobjekte, die der Gruppe 1 bis 16 zugeordnet wurden, gehören automatisch auch zur globalen Gruppe: IEC870_GRP_INROGEN;
- Zählwertübertragung: Alle Applikationsobjekte, die der Gruppe 1 bis 4 zugeordnet wurden, gehören automatisch auch zur globalen Gruppe: IEC870_GRP_REQCOGEN;
Sie können aber die automatische Zugehörigkeit der Applikationsobjekte zur globalen Gruppe verhindern in dem Sie die entsprechenden Bits während der Konfiguration ausmaskieren.
Beispiele:
IEC870_GRP_INRO3 AND NOT IEC870_GRP_INROGEN
oder
IEC870_GRP_REQCO1 AND NOT IEC870_GRP_REQCOGEN
Constant | Value | Description |
---|---|---|
Stationsabfrage | ||
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 |
Zählwertübertragung | ||
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 |
Andere | ||
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 command 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 |
Voraussetzungen
Entwicklungsumgebung | Zielplattform | Einzubindende SPS Bibliotheken |
---|---|---|
TwinCAT v2.9.0 Build >= 1030 | PC oder CX (x86) | TcIEC870_5_101.Lib |
TwinCAT v2.10.0 Build >= 1301 | CX (ARM) |