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.

3. Instruction Set<br />

Receiving data: (External equipment -> PLC)<br />

D120L D121L D122L D123L D124L D125L D126L<br />

STX<br />

Registers for received data,<br />

starting from the lower 8 bits<br />

of D120<br />

ETX1<br />

ETX2<br />

length = 7<br />

3. The STX and ETX of external equipments will be received by PLC in data receiving process,<br />

therefore, care should be taken on the setting of operand n (Length of data to be received).<br />

16-bit mode:<br />

1. STX (Start of Text) and ETX (End of text) are set up by M1126 and M1130 together with<br />

D1124~D1126. When PLC executed RS instruction, STX and ETX will be sent out<br />

automatically.<br />

2. When M1161 = OFF, the 16-bit mode is selected, i.e. both high byte and low byte of the 16-bit<br />

data will be received and transmitted.<br />

M1001<br />

X0<br />

M1161<br />

RS<br />

D100<br />

K4<br />

D120<br />

K7<br />

Sending data: (PLC -> external equipment)<br />

STX D100L D100H D101L D101H ETX1 ETX2<br />

Source data register, starting<br />

from the lower 8 bits of D100<br />

length = 4<br />

Receiving data: (External equipment -> PLC)<br />

D120L D120H D121L D121H D122L D122H D123L<br />

STX<br />

Registers for received data,<br />

starting from the lower 8 bits<br />

of D120<br />

ETX1<br />

ETX2<br />

3. The STX and ETX of external equipments will be received by PLC in data receiving process,<br />

therefore, care should be taken on the setting of operand n (Length of data to be received)<br />

3-205

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

Saved successfully!

Ooh no, something went wrong!