aboutsummaryrefslogtreecommitdiffstats
path: root/tests/tc900_bugs/raw-call-on-nonraw-fc.awl
blob: 946410220b1e96795b2dfdbcc1937584215c3717 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FUNCTION FC 1 : VOID
	VAR_INPUT
		IN0	: INT;
	END_VAR
BEGIN
	L	#IN0
END_FUNCTION


ORGANIZATION_BLOCK OB 1
BEGIN

	// Using UC together with a non-raw FC shall fail gracefully.
	// Note that on S7 this might "succeed" and do some undefined stuff,
	// but we don't support that.
	UC	FC 1


	CALL SFC 46 // STOP CPU
END_ORGANIZATION_BLOCK
bues.ch cgit interface