blob: 47a0fcae02611b783869cda354cccad7a7fac021 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
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
|