summaryrefslogtreecommitdiffstats
path: root/tests/tc700_hardware/pyprofibus/pyprofibus.awl
blob: 8bcd6ff96fe3dba859f77d24a77c67a8fdd1640e (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
ORGANIZATION_BLOCK OB 100
BEGIN
	L		0
	T		MW 0
	T		AB 8
END_ORGANIZATION_BLOCK


ORGANIZATION_BLOCK OB 1
BEGIN
	L		MW 0
	L		W#16#1000
	==I
	SPB		STOP

	L		MB 1
	L		W#16#FF
	<>I
	SPB		END


	L		EB 8
	L		AB 8
	XOW		W#16#FF
	__ASSERT==	__ACCU 1,	__ACCU 2


END:	L		MW 0
	+		1
	T		MW 0

	L		MB 0
	T		AB 8
	BEA

STOP:	CALL SFC 46 // STOP CPU

END_ORGANIZATION_BLOCK
bues.ch cgit interface