12345678910111213141516171819202122232425262728293031323334353637383940 |
- ORGANIZATION_BLOCK OB 1
- TITLE ="Main Program Sweep (Cycle)"
- VERSION : 0.1
- VAR_TEMP
- OB1_EV_CLASS : BYTE ; //Bits 0-3 = 1 (Coming event), Bits 4-7 = 1 (Event class 1)
- OB1_SCAN_1 : BYTE ; //1 (Cold restart scan 1 of OB 1), 3 (Scan 2-n of OB 1)
- OB1_PRIORITY : BYTE ; //Priority of OB Execution
- OB1_OB_NUMBR : BYTE ; //1 (Organization block 1, OB1)
- OB1_RESERVED_1 : BYTE ; //Reserved for system
- OB1_RESERVED_2 : BYTE ; //Reserved for system
- OB1_PREV_CYCLE : INT ; //Cycle time of previous OB1 scan (milliseconds)
- OB1_MIN_CYCLE : INT ; //Minimum cycle time of OB1 (milliseconds)
- OB1_MAX_CYCLE : INT ; //Maximum cycle time of OB1 (milliseconds)
- OB1_DATE_TIME : DATE_AND_TIME ; //Date and time OB1 started
- END_VAR
- BEGIN
- NETWORK
- TITLE =
- L 'ä';
- __ASSERT== __ACCU 1, DW#16#E4
- L 'Ä';
- __ASSERT== __ACCU 1, DW#16#C4
- L 'ö';
- __ASSERT== __ACCU 1, DW#16#F6
- L 'Ö';
- __ASSERT== __ACCU 1, DW#16#D6
- L 'ü';
- __ASSERT== __ACCU 1, DW#16#FC
- L 'Ü';
- __ASSERT== __ACCU 1, DW#16#DC
- L 'ß';
- __ASSERT== __ACCU 1, DW#16#DF
- CALL SFC 46 // STOP CPU
- END_ORGANIZATION_BLOCK
|