319
8 C Language Function Block
In this chapter, we focus on C language function block’s specifications, edition, instruction
calling, application points etc. We also attach the common function list.
8-1 Summary
XD/XL series supports to write function blocks in C language in the Xinje PLC software and
call them where needed. It supports almost all C language functions (compared with XC
series, XD/XL series also supports global variables), which enhances the confidentiality of
the program. At the same time, it can call many places and different files, greatly improves
the efficiency of programmers.
8-2 Instruction Format
1) Summary
Call the C language Function Block at the specified place.
Call the C language function block [NAME_C]
Normally ON/OFF,
Rising/Falling Edge activation
2) Operands
Name of C Function Block, defined by the user
Corresponding start ID of word W in C language
function
Corresponding start ID of bit B in C language
function
3) Suitable Soft Components
*Note: D includes D, HD; TD includes TD, HTD; CD includes CD, HCD, HSCD, HSD;
DM includes DM, DHM; DS includes DS, DHS. M includes M, HM, SM; S includes S
and HS; T includes T and HT; C includes C and HC.
tudonghoatoancau.com