271
6-5.Read 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-1.Read serial port parameters [CFGCR]
1. Instruction overview
Read the serial port parameters to local specified registers.
Read serial port parameters [CFGCR]
Normally ON/OFF, rising
edge triggering
Local register starting address
Read serial port parameters number
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·D·
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