BMA
Member
Although new to this forum, I have received much knowledge from reading many posts....Thanks everyone! I hope to one day to be able to help people out with this forum as much as I have been helped in the past. I do however have what should be a simple serial communication problem between an Omron CPM2A-30CDR-D and a Microscan MS820 barcode reader. What I need to accomplish is to be able to send a simple serial string to the barcode reader that it can recognize: <KC0> Because I have never used the serial output on a PLC and I do not have a similar sample code to go by, I am unsure of my settings. Perhaps someone can look to see if I have made any simple mistakes. (The manual isn't answering every question I have) This is what I have setup:
SW1 on front panel is set to OFF position
Settings for the RS-232 Port:
DM6645 1001 ( Port settings in DM6646, CTS disabled, Link words=0, Communications mode=no protocol )
DM6646 0300 (Baud rate=9,600, Frame Format=1 start bit 7 length 1 stop bit Parity is Even)
DM6647 0000 (0 Transmission Delay)
DM6648 0000 (Node=0, End code is disabled, Start code is disabled)
DM6649 (No start or end code)
I am using the TXD(48) "No protocol" Transmit Mnemonic with the following settings:
@TXD(48)
DM90 (Leading address is DM90)
0000 (Control is set to RS-232 port with Leftmost bytes first)
#0006 (Send 6 bytes: DM90, DM91, DM92)
DM Memory:
DM90 003C ( In ASCII should be: .< )
DM91 4B43 (Shoud be: KC )
DM92 303E (Should be: 0> )
My Questions that the manual just won't answer:
1.Am I setting the DM memmory correctly?
2.Do the RS-232 Port setting memmory areas read left to right or right to left? Should DM6646 be 0030?
3.Should the control in the TXD function be set to leftmost bytes first?
4.Am I sending the right amount of bytes? Can I send 6 bytes?
SW1 on front panel is set to OFF position
Settings for the RS-232 Port:
DM6645 1001 ( Port settings in DM6646, CTS disabled, Link words=0, Communications mode=no protocol )
DM6646 0300 (Baud rate=9,600, Frame Format=1 start bit 7 length 1 stop bit Parity is Even)
DM6647 0000 (0 Transmission Delay)
DM6648 0000 (Node=0, End code is disabled, Start code is disabled)
DM6649 (No start or end code)
I am using the TXD(48) "No protocol" Transmit Mnemonic with the following settings:
@TXD(48)
DM90 (Leading address is DM90)
0000 (Control is set to RS-232 port with Leftmost bytes first)
#0006 (Send 6 bytes: DM90, DM91, DM92)
DM Memory:
DM90 003C ( In ASCII should be: .< )
DM91 4B43 (Shoud be: KC )
DM92 303E (Should be: 0> )
My Questions that the manual just won't answer:
1.Am I setting the DM memmory correctly?
2.Do the RS-232 Port setting memmory areas read left to right or right to left? Should DM6646 be 0030?
3.Should the control in the TXD function be set to leftmost bytes first?
4.Am I sending the right amount of bytes? Can I send 6 bytes?