17.03.2014 Views

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Communications<br />

This chapter introduces information regarding the communications ports of the PLC.<br />

Through this chapter, the user can obtain a full understanding about PLC<br />

communication ports.<br />

Chapter Contents<br />

4.1 Communication Ports ........................................................................................................4-2<br />

4.2 Communication Protocol ASCII mode..............................................................................4-3<br />

4.2.1 ADR (Communication Address) ............................................................................4-3<br />

4.2.2 CMD (Command code) and DATA ........................................................................4-3<br />

4.2.3 LRC CHK (checksum) ...........................................................................................4-5<br />

4.3 Communication Protocol RTU mode................................................................................4-7<br />

4.3.1 Address (Communication Address).......................................................................4-7<br />

4.3.2 CMD (Command code) and DATA ........................................................................4-8<br />

4.3.3 CRC CHK (check sum) .........................................................................................4-9<br />

4.4 PLC Device Address.........................................................................................................4-11<br />

4.5 Command Code ................................................................................................................4-13<br />

4.5.1 Command Code: 01, Read Status of Contact (Input point X is not included) .....4-13<br />

4.5.2 Command Code: 02, Read Status of Contact (Input point X is included) ...........4-14<br />

4.5.3 Command Code: 03, Read Content of Register (T, C, D)...................................4-15<br />

4.5.4 Command Code: 05, Force ON/OFF single contact ...........................................4-16<br />

4.5.5 Command Code: 06, Set content of single register ............................................4-17<br />

4.5.6 Command Code: 15, Force ON/OFF multiple contacts ......................................4-18<br />

4.5.7 Command Code: 16, Set content of multiple registers .......................................4-18<br />

4-1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!