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.

2. Programming Concepts<br />

Content<br />

b7<br />

0100(H4): 600<br />

0101(H5): 1200<br />

0110(H6): 2400<br />

0111(H7): 4800<br />

1000(H8): 9600<br />

1001(H9): 19200<br />

1010(HA): 38400<br />

1011(HB): 57600<br />

1100(HC): 115200<br />

1101(HD):<br />

500000 (COM2 /<br />

COM3)<br />

1110(HE):<br />

31250 (COM2 /<br />

COM3)<br />

1111(HF):<br />

921000 (COM2 /<br />

COM3)<br />

b8 Select start bit 0: None 1: D1124<br />

b9 Select the 1 st end bit 0: None 1: D1125<br />

b10 Select the 2 nd end bit 0: None 1: D1126<br />

b11~b15<br />

Undefined<br />

Example 1: Modifying COM1 communication format<br />

1. Add the below instructions on top of the program to modify the communication format of<br />

COM1. When PLC switches from STOP to RUN, the program will detect whether M1138 is<br />

ON in the first scan. If M1138 is ON, the program will modify the communication settings of<br />

COM1 according to the value set in D1036<br />

2. Modify COM1 communication format to ASCII mode, 9600bps, 7 data bits, even parity, 1 stop<br />

bits (9600, 7, E, 1).<br />

M1002<br />

MOV H86 D1036<br />

SET<br />

M1138<br />

Example 2: Modiying COM2 communication format<br />

1. Add the below instructions on top of the program to modify the communication format of<br />

COM2. When PLC switches from STOP to RUN, the program will detect whether M1120 is<br />

ON in the first scan. If M1120 is ON, the program will modify the communication settings of<br />

COM2 according to the value set in D1120<br />

2. Modify COM2 communication format to ASCII mode, 9600bps, 7 data bits, even parity, 1 stop<br />

bits (9600, 7, E, 1)<br />

M1002<br />

MOV H86 D1120<br />

.<br />

SET<br />

M1120<br />

2-63

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

Saved successfully!

Ooh no, something went wrong!