EasyManuals Logo

Xinje XD Series User Manual

Xinje XD 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
Page #320 background imageLoading...
Page #320 background image
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

Other manuals for Xinje XD Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Xinje XD Series and is the answer not in the manual?

Xinje XD Series Specifications

General IconGeneral
Input Voltage24V DC
Storage Temperature-20°C to 70°C
Protection ClassIP20
TypePLC
SeriesXD
Programming LanguageLadder Logic, Instruction List
Communication InterfaceRS232, RS485
Power Supply24V DC
Digital InputsAvailable (number varies by model)
Digital OutputsAvailable (number varies by model)
Analog InputsAvailable (number varies by model)
Analog OutputsAvailable (number varies by model)
Output TypeRelay, Transistor
Number of InputsVaries by model (see Digital Inputs and Analog Inputs)
Number of OutputsVaries by model (see Digital Outputs and Analog Outputs)
Operating Temperature0°C to 50°C
Humidity5% to 95% (non-condensing)