2/2/2021 6:05 PM | |
Joined: 5/5/2018 Last visit: 2/1/2024 Posts: 4 Rating:
|
Dear All, Can we create a DB consisting struct inside as struct using SCL or STL using step 7 or TIA portal? Iam trying with below code. But not happening. can any one handle this? DATA_BLOCK DB502 STRUCT STRUCT A1: WORD; A2:WORD; END_STRUCT REDINF: WORD; STATUS_BYTE_1_RESERVED_0: BOOL; STATUS_BYTE_1_RESERVED_1: BOOL; STATUS_BYTE_1_RESERVED_2: BOOL; STATUS_BYTE_1_RESERVED_3: BOOL; CPU_0_STATUS: BOOL; //H status of CPU in rack 0: 0 = standby CPU ; 1 = master CPU CPU_1_STATUS: BOOL; //H status OF CPU in rack 1: 0 = standby CPU ; 1 = master CPU STATUS_BYTE_1_RESERVED_6: BOOL; STATUS_BYTE_1_RESERVED_7: BOOL; SYNCRONIZATION_STATUS: BOOL;//Synchronization between CPU 0 AND CPU 1: 0 = NOT possible ; 1 = possible STATUS_BYTE_2_RESERVED_1: BOOL; STATUS_BYTE_2_RESERVED_2: BOOL; STATUS_BYTE_2_RESERVED_3: BOOL; CPU_0_INSERTED: BOOL;//0 = CPU NOT inserted in rack 0 ; 1 = CPU inserted in rack 0 CPU_1_INSERTED: BOOL;//0 = CPU NOT inserted in rack 1 ; 1 = CPU inserted in rack 1 STATUS_BYTE_2_RESERVED_6: BOOL; SWITCHOVER: BOOL;//Standby-master switchover since last re-enable: 0 = no ; 1 = yes RE_ENABLE_STATUS: BOOL;//Re-enable: 0 = inactive ; 1 = active UPDATING_STATUS: BOOL;//Updating OF standby: 0 = enabled ; 1 = disabled LINK_UP: BOOL;//Link-up TO standby: 0 = enabled ; 1 = disabled HSFCINFO_RESERVED_3: BOOL; HSFCINFO_RESERVED_4: BOOL; HSFCINFO_RESERVED_5: BOOL; HSFCINFO_RESERVED_6: BOOL; HSFCINFO_RESERVED_7: BOOL; SAMFEHL_RESERVED: WORD; CPU_0_MODE: WORD;//Mode OF CPU in rack 0 CPU_1_MODE: WORD;//Mode OF CPU in rack 0 CPU_2_MODE_RESERVED: WORD; CPU_VALID: BYTE;//Validity OF the variables CPU_0_MODE AND CPU_1_MODE H_SYNC_F: BYTE;//Status OF connection quality END_STRUCT BEGIN END_DATA_BLOCK ------------------------------------------------------------------------------------------ |
Last edited by: AutoGen_656847 at: 02/02/2021 18:06:08Last edited by: Jen_Moderator at: 02/03/2021 09:50:33New subject after splitting |
|
Follow us on