EasyManua.ls Logo

Xinje XD5 - Read Write Serial Port Parameters; Read Serial Port Parameters [CFGCR]

Xinje XD5
389 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...
271
6-5Read write serial port parameters
In addition to modifying communication parameters through serial configuration panel, it can
also be realized by reading instruction [CFGCR] of serial parameters and writing instruction
[CFGCW] of serial parameters.
6-5-1Read serial port parameters [CFGCR]
1. Instruction overview
Read the serial port parameters to local specified registers.
Read serial port parameters [CFGCR]
16-bit
instruction
CFGCR
32-bit
instruction
-
Execution
condition
Normally ON/OFF, rising
edge triggering
Suitable
model
XD, XL
Hardware
-
Software
V3.4 and higher version
2. Operand
Operand
Function
Type
D
Local register starting address
16-bit, BIN
S1
Read serial port parameters number
16-bit, BIN
S2
Serial port no.
16-bit, BIN
3. Suitable soft component
* Note: D denotes D HD; TD denotes TD HTD; CD denotes CD HCD HSCD HSD; DM
denotes DM DHM;
DS stands for DS DHS.
CGFCR HD0 K8 K2
X0
S1· S2·
Operator S1: The number of registers used to read serial parameters is generally 8
(XD5E/XDME series is 9).
Operator S2: Serial port range: K0 ~ K5. K0: Port0, K1: Port1, K2: Port2 or Port2-
RS232 or Port2-RS485, K3: Port3, K4: Port4, K5: Port5.
Read 8 parameters of serial port 2 to HD0~HD7. See sections 6-5-3 for the names and
Word
operand
System
constant
Module
D
FD
ED
TD
CD
DX
DY
DM
DS
K /H
ID
QD
D
S1
S2
Function and action

Table of Contents

Related product manuals