I'm trying to communicate a code bar reader (metrologic MS9540)with a DL06 PLC with the next communication adjustments:
--------PLC SetUp Communication Port----------------
Port:2
Non-Sequence
Base Timeout
RTS on delay:0 ms
RTS off delay:0 ms
Data Bits:7
Baud Rate:9600
Stop Bits:2
Parity:Odd
Memory Address:V400
Echo Suppression: RS-422/485(4 wire) RS-232 (2 wire)
XON/XOFF flow control (Disable)
RTS flow Control (Disable)
----------------------AIN------------------------
Variable Length (Enable)
Port Number: K2
Data Destination:V400
Maximum Variable Length: K10
Interchar.Timeuot: None
First Char.TimeOut: None
Byte Swap: All
Termination Code Length:
1 Character
Termination Code1: 0D
Overflow Error: C2
Busy: C0
Complete: C1
-------------------------------------------------
I test the Reader with 10 diferents labels using the Hyperterminal and the readings are OK.
I'm using a Metrologic MS9540 bar code reader with the default setings, the cable between the PLC and Reader have this pin out:
PLC Reader
2 TX 3 RX
3 RX 2 TX
7 0V (-) GND 5 Signal Ground
Seemingly the comunication is working because the bit AIN Complete is Done and I can read values in the Data Table, the problem is for example,
for the label 00-02544H (in the Hyperterminal the result is complete), but in the PLC with the AIN parameters (adjusted above) the reading values are:
v400= 4 (4 bytes ???, Why only have 4 bytes????)
V401= 32 34 (Start Data, Why don't start with 30???)
v402= D 34
v403= 2020
Probably I am not understand how the system works..because 32 34 0D 34 = 2 4 ?? 4 (is only a small part of the complete label code, the same happen with other labels, only read part of the codes....)
If I understand good, the reading will be : 30 30 2D 30 35 34 34 48....Why i can't read the complete code???
I will be happy if you can help me because, I'm pressed with the delivery of this project....thank you
--------PLC SetUp Communication Port----------------
Port:2
Non-Sequence
Base Timeout
RTS on delay:0 ms
RTS off delay:0 ms
Data Bits:7
Baud Rate:9600
Stop Bits:2
Parity:Odd
Memory Address:V400
Echo Suppression: RS-422/485(4 wire) RS-232 (2 wire)
XON/XOFF flow control (Disable)
RTS flow Control (Disable)
----------------------AIN------------------------
Variable Length (Enable)
Port Number: K2
Data Destination:V400
Maximum Variable Length: K10
Interchar.Timeuot: None
First Char.TimeOut: None
Byte Swap: All
Termination Code Length:
1 Character
Termination Code1: 0D
Overflow Error: C2
Busy: C0
Complete: C1
-------------------------------------------------
I test the Reader with 10 diferents labels using the Hyperterminal and the readings are OK.
I'm using a Metrologic MS9540 bar code reader with the default setings, the cable between the PLC and Reader have this pin out:
PLC Reader
2 TX 3 RX
3 RX 2 TX
7 0V (-) GND 5 Signal Ground
Seemingly the comunication is working because the bit AIN Complete is Done and I can read values in the Data Table, the problem is for example,
for the label 00-02544H (in the Hyperterminal the result is complete), but in the PLC with the AIN parameters (adjusted above) the reading values are:
v400= 4 (4 bytes ???, Why only have 4 bytes????)
V401= 32 34 (Start Data, Why don't start with 30???)
v402= D 34
v403= 2020
Probably I am not understand how the system works..because 32 34 0D 34 = 2 4 ?? 4 (is only a small part of the complete label code, the same happen with other labels, only read part of the codes....)
If I understand good, the reading will be : 30 30 2D 30 35 34 34 48....Why i can't read the complete code???
I will be happy if you can help me because, I'm pressed with the delivery of this project....thank you