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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>DVP</strong>-<strong>ES2</strong>/<strong>SX2</strong>/<strong>SS2</strong>/<strong>SA2</strong>/<strong>SX2</strong>/SE <strong>Operation</strong> <strong>Manual</strong> – Programming<br />

M1002<br />

MOV<br />

H87<br />

D1120<br />

Set communication protocol as 9600,8,E,1<br />

SET<br />

M1120<br />

Retain communication setting<br />

MOV<br />

K100<br />

D1129<br />

Set time-out value as 100ms<br />

X0<br />

X0<br />

RST M1143 Set up in ASCII mode SET M1143<br />

SET<br />

ASDRW<br />

M1122<br />

K1<br />

Sending request<br />

K0<br />

D0<br />

M1127<br />

Processing received data<br />

Data Register<br />

Function Code: K0<br />

Monitor ASDA status<br />

ASDA address: K1<br />

ASCII mode: Store the received data into specified registers D0~D4 in Hex<br />

RTU mode:Store the received data into specified registers D0~D4 in Hex<br />

RST<br />

M1127<br />

Reset communication completed flag M1127<br />

Program example 2: COM3(RS-485)<br />

1. When M0 = ON, PLC sends communication commands by COM3 to read servo drive status.<br />

2. When PLC received the feedback data from ASDA, M1318 will be active and the read data will<br />

be stored in D0~D4.<br />

M1002<br />

MOV<br />

H87<br />

D1109<br />

Set communication protocol as 9600,8,E,1<br />

SET<br />

M1136<br />

Retain communication setting<br />

MOV<br />

K100<br />

D1252<br />

Set reveiving time-out as 100ms<br />

M0<br />

M0<br />

RST M1320 Set up in ASCII mode SET M1320<br />

SET<br />

ASDRW<br />

M1316<br />

K1<br />

Sending request<br />

K0<br />

D0<br />

Set up in RTU mode<br />

M1318<br />

Processing received data<br />

ASCII mode: Store the received data into specified registers D0~D4 in Hex<br />

RTU mode: Store the received data into specified registers D0~D4 in Hex<br />

Data Register<br />

Function Code: K0<br />

Monitor ASDA status<br />

ASDA address: K1<br />

RST<br />

M1318<br />

Reset communication completed flag M1318<br />

3-464

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

Saved successfully!

Ooh no, something went wrong!