equal
deleted
inserted
replaced
6 <fileHeader companyName="" |
6 <fileHeader companyName="" |
7 productName="Beremiz" |
7 productName="Beremiz" |
8 productVersion="0.0" |
8 productVersion="0.0" |
9 creationDateTime="2008-12-14T16:21:19"/> |
9 creationDateTime="2008-12-14T16:21:19"/> |
10 <contentHeader name="Beremiz Python Support Tests" |
10 <contentHeader name="Beremiz Python Support Tests" |
11 modificationDateTime="2013-04-25T11:47:30"> |
11 modificationDateTime="2013-05-02T10:44:19"> |
12 <coordinateInfo> |
12 <coordinateInfo> |
13 <pageSize x="1024" y="1024"/> |
13 <pageSize x="1024" y="1024"/> |
14 <fbd> |
14 <fbd> |
15 <scaling x="5" y="5"/> |
15 <scaling x="5" y="5"/> |
16 </fbd> |
16 </fbd> |
1159 <ST> |
1159 <ST> |
1160 <![CDATA[(* hereafter is a C pragma accessing FB interface in a clean way *) |
1160 <![CDATA[(* hereafter is a C pragma accessing FB interface in a clean way *) |
1161 {{ |
1161 {{ |
1162 char toPLC; |
1162 char toPLC; |
1163 char fromPLC = GetFbVar(IN); |
1163 char fromPLC = GetFbVar(IN); |
|
1164 extern int PLC_C_Call(char, char *); |
1164 if(PLC_C_Call(fromPLC, &toPLC)){ |
1165 if(PLC_C_Call(fromPLC, &toPLC)){ |
1165 SetFbVar(OUT, toPLC); |
1166 SetFbVar(OUT, toPLC); |
1166 } |
1167 } |
1167 if(0){ |
1168 if(0){ |
1168 /* that code demonstrate C access to complex types */ |
1169 /* that code demonstrate C access to complex types */ |