EasyManua.ls Logo

Xinje XL Series - 8 C Language Function Block; 8-1 Summary; 8-2 Instruction Format

Xinje XL Series
456 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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]
16 bits
instruction
NAME_C
32 bits
Instruction
-
Execution
condition
Normally ON/OFF,
Rising/Falling Edge activation
Suitable
Models
XD, XL
Hardware
Software
2) Operands
Operands
Function
Type
S1
Name of C Function Block, defined by the user
String
S2
Corresponding start ID of word W in C language
function
16 bits, BIN
S3
Corresponding start ID of bit B in C language
function
bit, BIN
3) Suitable Soft Components
Operan
ds
Word soft elements
Bit soft elements
System
Consta
nt
Module
System
D
F
D
T
D
C
D
D
X
D
Y
D
M
D
S
K/H
I
D
Q
D
X
Y
M
S
T
C
Dn.
m
S1
S2
S3
*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

Table of Contents

Related product manuals