XC MODBUS
HMI Settings
Item | Settings | Note |
Protocol | XINJE XC MODBUS | |
Connection | RS232 | |
Baud rate | 19200 | |
Data bit | 8 | |
Parity | EVEN | |
Stop bit | 1 | |
PLC station No. | 1 |
Address List
Type | Device registers | HMI registers | Format | Range | Note |
---|---|---|---|---|---|
Bit | M | M | M d | 0~8511 | |
Bit | X | X | X o | 0~1747 | |
Bit | Y | Y | Y o | 0~1747 | |
Bit | S | S | S d | 0~1023 | |
Bit | T | T | T d | 0~4095 | |
Bit | C | C | C d | 0~634 | |
Word | D | D | D d | 0~8511 | |
Word | TD | TD | TD d | 0~618 | |
Word | CD | CD | CD d | 0~634 | |
Word | FD | FD | FD d | 0~8511 |
Configure the communication protocol
Cable Wiring
Figure
Pin Definition Diagram
XD/XE MODBUS
Supported Series: Xinjie XD Series
HMI Settings
Item | Settings | Note |
---|---|---|
Protocol | XINJE XD/XC MODBUS | |
Connection | RS232 | |
Baud rate | 19200 | |
Data bit | 8 | |
Parity | EVEN | |
Stop bit | 1 | |
PLC station No. | 1 | Need to be same as PLC setting |
Address List
Type | Device registers | Format | Range | Note |
---|---|---|---|---|
Bit | M | MDDDDD | 0~74999 | Internal Relay |
X1xx | X1xxOOOO | 0~1177 | Extension Module Input Relay | |
X2xx | X2xxOOO | 0~277 | BD Card Input Relay | |
X | XOO | 0~77 | Input Relay | |
Y1xx | Y1xxOOOO | 0~1177 | Extenson Module Output Relay | |
Y2xx | Y2xxOOO | 0~277 | BD Card Output Relay | |
Y | YOOOO | 0~77 | Output Relay | |
SM | SMDDDD | 0~4999 | Special Auxiliary Relay | |
T | TDDDD | 0~4999 | Timer | |
C | CDDDD | 0~4999 | Counter | |
ET | ETDD | 0~31 | Precise Timer | |
SE | SEDD | 0~31 | ||
HM | HMDDDDD | 0~11999 | Power Off Retentive Internal Relay | |
HSC | HSCDD | 0~39 | High Speed Counter | |
HS | HSDDD | 0~999 | ||
HT | HTDDDD | 0~1999 | ||
HC | HCDDDD | 0~1999 | Power Off Retentive Counter | |
S | SDDDD | 0~7999 | Procedure | |
Word | D | DDDDDD | 0~69999 | Data Register |
ID | IDDD | 0~99 | Analog Input | |
ID1xx | ID1xxDDD | 0~999 | Extension Module Analog Input | |
ID2xx | ID2xxDDD | 0~299 | BD Card Analog Input | |
QD | QDDD | 0~99 | Analog Output | |
QD1xx | QD1xxDDD | 0~999 | Extension Module Analog Output | |
QD2xx | QD2xxDDD | 0~299 | BD Card Analog Output | |
SD | SDDDDD | 0~4999 | Data Register | |
TD | TDDDD | 0~575 | Timer | |
CD | CDDDD | 0~575 | Counter | |
ETD | ETDDD | 0~31 | Precise Timer | |
HD | HDDDDDD | 0~24999 | Data Register | |
HSD | HSDDDDD | 0~1023 | Power Off Retentive Data Register | |
HTD | HTDDD | 0~95 | Power Off Retentive Timer | |
HCD | HCDDD | 0~95 | Power Off Retentive Counter | |
HSCD | HSCDDD | 0~31 | High Speed Counter | |
FD | FDDDDD | 0~8191 | FlashROM Register | |
SFD | SFDDDDD | 0~5999 | Special Flash Register | |
FS | FSDD | 0~47 | Special Data Register |
PLC Settings
Create the new project, and select the specific model according to the actual PLC
Program the PLC
Connect PLC with PC through RS232-USB converter cable. Click [Option]-[Software Serial Port Config]-[Communication configuration] to open the PC connection configuration.
New a Modbus configuration, and Click [Comm-Test] to test connection, if shows "Connect To PLC Succeeded", which means PLC connection set up successfully. And click OK to save the settings
Remember to click the Status cell of new created Modbus configuration for change the status into "in use", then click OK to exit.
After done the previous steps, it would prompt like the below
Change the PLC communication setup if required. Click [Configure]-[PLC Comm Port Settings]-[Add]-[Modbus]. After parameters are modified, click [Write to PLC].
If wrote to PLC successfully, it would prompt like the below
Click [Online]-[Download Program & Data], and wait for a while, the pop up window would ask for whether to stop PLC, and click [Stop PLC, contitue download]
And then the XDPro ask for which options want to rewrite, and click OK to finish.
If download successfully, it would prompt like the below
Cable Wiring