2. Prog rammi ng Con cep ts
M N050 03003E F or m ore info rm ati on vi sit:
www.eaton.co m
2-91
2.
Modifying COM2 communication format to ASCII mode, 9600bps, 7 data bits, even parity, 1
stop bits (9600, 7, E, 1).
MOV
H86
D1120
SET
M1120
M1002
Note:
1.
Do NOT write any communication command in the program when COM2 is used as slave.
2.
After modifying communication format, communication format setting will not be changed
when ELC is switched from RUN to STOP.
3.
After modifying communication format, communication format will be changed to factory
setting after power OFF and power ON again.
Example 2: modification method for COM1 communication format
1.
When modifying COM1 communication format, you will need to add program code below in
the front of program. When the ELC is switched from STOP to RUN, it will detect if M1138 is
ON at ELC first scan time. If M1138 is ON, it will change COM1 setting by D1036.
2.
Modifying COM1 communication format to ASCII mode, 9600bps, 7 data bits, even parity, 1
stop bits (9600, 7, E, 1).
MOV
H86
D1036
SET
M1138
M1002
Note:
1. After modifying communication format, communication format setting will not be changed
when the ELC is switched from RUN to STOP.
2.
After modifying communication format, communication format will be changed to factory
setting after power OFF and power ON again.
Example 3: RTU mode setting of COM1 and COM2
1.
Both of COM1 and COM2 support ASCII/RTU mode. COM1 is used to set flag by M1139 and
COM2 is used to set flag by M1143. When flag is ON, it is RTU mode. When flag is OFF, it is
ASCII mode.
2.
Modifying COM1/COM2 communication format to RTU mode, 9600bps, 8 data bits, even
parity, 1 stop bits (9600, 8, E, 1).
COM1:
MOV
D1036
SET
M1138
M1002
SET
M1139
H87
Summary of Contents for ELC-PB
Page 1: ......
Page 5: ...For more information visit www eaton com MN05003003E iv...
Page 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Page 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Page 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Page 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...