diraemon Posted September 10, 2018 Report Posted September 10, 2018 Greetings everyone. I'm new here. Hoping to get help to operate the Omron V400-R2 barcode to the Mitsubishi QJ71C24N so that they can communicate the two devices with the correct method. PLC: Mitsubishi: Q03UDVCPU; barcode: Omron V400-R2; serial communication module: QJ71C24N. I use RS 232 communication cable, I have tried using predefined protocol and non protocol procedures but still can't communicate the two devices. I really appreciate your help.
Gambit Posted September 10, 2018 Report Posted September 10, 2018 Can you be more clear about your problem ? I would use pre-defined protocol.
diraemon Posted September 12, 2018 Author Report Posted September 12, 2018 thank you On 9/10/2018 at 0:50 AM, Gambit said: Can you be more clear about your problem ? I would use pre-defined protocol. Thank you Mr. Gambit for seeing this thread, I'm just still confused by how to communicate these two devices, I use barcode omron V400-r2 to PLC mitsubishi. I have followed your advice and fixed the ladder but both devices still not connected. Like the picture I attach, the protocol status only "sending".. NO error but why the SD and RD indicators in the QJ71C24N series module are not ON.. ? correction and.
Gambit Posted September 12, 2018 Report Posted September 12, 2018 (edited) Looks to me that you have send a string but there is no reply. In your pre-defined protocol you can set the wait time. This is probably on default infinite wait. You should change this to 5 sec or so. So you will get an error after this time when there is no answer. You should see the SD let lite up once when you activate X30 Edited September 12, 2018 by Gambit
Wasan Posted September 12, 2018 Report Posted September 12, 2018 (edited) Maybe you should hyperterminal software (e.g. hercules) and connect V400-R2 to your computer to see that how data frame send from baecode scanner I have ever use COGNEX Dataman to QJ71C24N that use only G.INPUT instruction to to recieve data from barcode scanner use non procedure protocol for V200-R2 there are default parameter as below Communication speed 9600 bps Data length 8 bits Parity None Stop bit 1 bit Header None Footer CR if you need to connect with QJ71C24N CH1 (RS-232) you should config as shown below 1. Set switch setting with parameter 9600/8/none/1/Non Procedure protocol 2. Adjust Footer Receive from 3338 (<CR LF>, [H0D0A]) to 13 (<CR>, [H0D]) then Save parameter to PLC 3. G.INPUT program describe as below (This program has set QJ71C24N at Slot 0 Start Address 0000) D0 - Channel No. of QJ71C24N that you use D3 - Allowable number of receive data X3 - CH1 Normal Read X4 - CH1 Abnormal Read 4. Receive data management M0 - Flag Read M1 - Flag error read D2 - Receive data count D110 - Destination receive data 5. Error clear X0E - CH1 Error Occurrence Y0E - CH1 Error Clear Request for more information please check link below http://dl.mitsubishielectric.com/dl/fa/document/manual/plc/sh080006/sh080006u.pdf https://industrial.omron.us/en/media/V400-R2_UsersManual_en_201303_Z333-E1-01A_tcm849-114187.pdf Edited September 12, 2018 by Wasan
diraemon Posted September 13, 2018 Author Report Posted September 13, 2018 (edited) 20 hours ago, Gambit said: Looks to me that you have send a string but there is no reply. In your pre-defined protocol you can set the wait time. This is probably on default infinite wait. You should change this to 5 sec or so. So you will get an error after this time when there is no answer. You should see the SD let lite up once when you activate X30 I've tried giving the monitoring time = 7s and try different time too. Its respon with error in module. But i cant see indicator the SD lite up when I activated X30. I dont know if I do something wrong with this predefined protocol ? Edited September 13, 2018 by diraemon
diraemon Posted September 13, 2018 Author Report Posted September 13, 2018 18 hours ago, Wasan said: Maybe you should hyperterminal software (e.g. hercules) and connect V400-R2 to your computer to see that how data frame send from baecode scanner I have ever use COGNEX Dataman to QJ71C24N that use only G.INPUT instruction to to recieve data from barcode scanner use non procedure protocol for V200-R2 there are default parameter as below Communication speed 9600 bps Data length 8 bits Parity None Stop bit 1 bit Header None Footer CR if you need to connect with QJ71C24N CH1 (RS-232) you should config as shown below 1. Set switch setting with parameter 9600/8/none/1/Non Procedure protocol 2. Adjust Footer Receive from 3338 (<CR LF>, [H0D0A]) to 13 (<CR>, [H0D]) then Save parameter to PLC 3. G.INPUT program describe as below (This program has set QJ71C24N at Slot 0 Start Address 0000) D0 - Channel No. of QJ71C24N that you use D3 - Allowable number of receive data X3 - CH1 Normal Read X4 - CH1 Abnormal Read 4. Receive data management M0 - Flag Read M1 - Flag error read D2 - Receive data count D110 - Destination receive data 5. Error clear X0E - CH1 Error Occurrence Y0E - CH1 Error Clear Request for more information please check link below http://dl.mitsubishielectric.com/dl/fa/document/manual/plc/sh080006/sh080006u.pdf https://industrial.omron.us/en/media/V400-R2_UsersManual_en_201303_Z333-E1-01A_tcm849-114187.pdf Thankyou Mr. Wasan. I have tried to use this method too but no response when I trigger the device to barcode.. Does barcode wiring use cognex and omron v400-r2 the same?
Wasan Posted September 13, 2018 Report Posted September 13, 2018 (edited) 47 minutes ago, diraemon said: Thankyou Mr. Wasan. I have tried to use this method too but no response when I trigger the device to barcode.. Does barcode wiring use cognex and omron v400-r2 the same? There are some different but use wiring RXD TXD and GND are same. I think you should use serial communication software (e.g. hyperterminal, hercules) to check how data come from Barcode Scanner first because either PreDefined Protocol or Non Procedure Protocol would check data frame that match with their data frame or not.If not error would occur. Maybe you should swap RXD and TXD barcode scanner with QJ71C24N and you should connect pin 4 (DTR) to pin 6 (DSR) and pin 7 (RTS) to pin 8 (CTS) too. Edited September 13, 2018 by Wasan
diraemon Posted September 13, 2018 Author Report Posted September 13, 2018 Just now, Wasan said: There are some different but use RXD TXD and GND are same. I think you should use serial communication software (e.g. hyperterminal, hercules) to check how data come from Barcode Scanner first because either PreDefined Protocol or Non Procedure Protocol would check data frame that match with their data frame or not.If not error would occur. can I know which one port can be use to connect the cable barcode RS232 to (RJ45/vga port/ usb/ HDMI) in notebook?
Wasan Posted September 13, 2018 Report Posted September 13, 2018 8 minutes ago, diraemon said: can I know which one port can be use to connect the cable barcode RS232 to (RJ45/vga port/ usb/ HDMI) in notebook? You should use USB to RS-232 cable as this when you install driver and connect it there are COM port (e.g. COM3) generate on device manage then use HyperTerminal or Hercules connect COM port with Barcode Scanner and check how data come from it. https://www.moxa.com/product/UPort_1110.htm
diraemon Posted September 13, 2018 Author Report Posted September 13, 2018 (edited) 13 minutes ago, Wasan said: You should use USB to RS-232 cable as this when you install driver and connect it there are COM port (e.g. COM3) generate on device manage then use HyperTerminal or Hercules connect COM port with Barcode Scanner and check how data come from it. https://www.moxa.com/product/UPort_1110.htm thankyou for the advice Mr. Wasan.. I will try it.. Edited September 13, 2018 by diraemon
Wasan Posted September 13, 2018 Report Posted September 13, 2018 Just now, diraemon said: thankyou for the advice sir.. can't I make a wiring manual cable with RS232 to LAN port notebook ? If you need to convert LAN to RS-232 you should use Serial Device Server to create virtual com port same as UPort 1100 but for this project I don't recommend beacause it has more price than USB to RS-232 Converter. For detail please check link below. https://www.moxa.com/product/NPort_5100A.htm
Gambit Posted September 13, 2018 Report Posted September 13, 2018 (edited) 2 hours ago, diraemon said: I've tried giving the monitoring time = 7s and try different time too. Its respon with error in module. But i cant see indicator the SD lite up when I activated X30. I dont know if I do something wrong with this predefined protocol ? Arre you trying to execute protocol 1 or 2 ? You should set the receive wait time it is on infinite wait rigth now Edited September 13, 2018 by Gambit
diraemon Posted September 14, 2018 Author Report Posted September 14, 2018 22 hours ago, Gambit said: Arre you trying to execute protocol 1 or 2 ? You should set the receive wait time it is on infinite wait rigth now I tried again by creating a new protocol, protocol 5 was executed and I also checked the error in the cable ... "start monitoring" X3 is ON and the barcode is successfully connected, when I press the "scan button" on the v400-r2 barcode, finally the predefined reading is successful and the data is stored on the D1000 like the image I attached. but for the second reading, when pressing "scan button" the data on D1000 does not change ... I have to select "stop monitoring" in the toolbar then repeat by pressing X30 again so that the second reading can be done, is it really the way it works like that? and even in M0 the status is always OFF?
diraemon Posted September 14, 2018 Author Report Posted September 14, 2018 On 9/12/2018 at 1:54 AM, Wasan said: Maybe you should hyperterminal software (e.g. hercules) and connect V400-R2 to your computer to see that how data frame send from baecode scanner I have ever use COGNEX Dataman to QJ71C24N that use only G.INPUT instruction to to recieve data from barcode scanner use non procedure protocol for V200-R2 there are default parameter as below Communication speed 9600 bps Data length 8 bits Parity None Stop bit 1 bit Header None Footer CR if you need to connect with QJ71C24N CH1 (RS-232) you should config as shown below 1. Set switch setting with parameter 9600/8/none/1/Non Procedure protocol 2. Adjust Footer Receive from 3338 (<CR LF>, [H0D0A]) to 13 (<CR>, [H0D]) then Save parameter to PLC 3. G.INPUT program describe as below (This program has set QJ71C24N at Slot 0 Start Address 0000) D0 - Channel No. of QJ71C24N that you use D3 - Allowable number of receive data X3 - CH1 Normal Read X4 - CH1 Abnormal Read 4. Receive data management M0 - Flag Read M1 - Flag error read D2 - Receive data count D110 - Destination receive data 5. Error clear X0E - CH1 Error Occurrence Y0E - CH1 Error Clear Request for more information please check link below http://dl.mitsubishielectric.com/dl/fa/document/manual/plc/sh080006/sh080006u.pdf https://industrial.omron.us/en/media/V400-R2_UsersManual_en_201303_Z333-E1-01A_tcm849-114187.pdf i have done do your advise to check with hyperterminal and now the both devices can connection. I also have tried non procedure and that working now. I just press the "scan button" in V400-r2 for reading barcode and it can read different codes repeatedly without select the X83 and even in M0 the status is always OFF? is it really the way it works like that?
Wasan Posted September 14, 2018 Report Posted September 14, 2018 (edited) When QJ71C24N receive data X83 willl be automatically on you don't necessary to on it M0 will on one cycle scan you cannot see it.It is OK as long as M1 is off if it on that means there are some error occur. Edited September 14, 2018 by Wasan
diraemon Posted September 14, 2018 Author Report Posted September 14, 2018 3 hours ago, Wasan said: When QJ71C24N receive data X83 willl be automatically on you don't necessary to on it M0 will on one cycle scan you cannot see it.It is OK as long as M1 is off if it on that means there are some error occur. I learned a lot after completing this project. Really thankyou Mr. Wasan..
Bhanu9675 Posted August 13, 2020 Report Posted August 13, 2020 I have something strange issue. Setting is done properly and i can see clearly on module circuit trace that data is receiving but on plc the data only coming after 1 minute. What will be the issue.
Bobby Gord Posted August 19, 2020 Report Posted August 19, 2020 Mr wasan do you know what the parameter settings are for the magellan 1100i scanner, I used your ladder but after the first scan, there was no change in the second scan. it stuck in first barcode scanned
Wasan Posted August 20, 2020 Report Posted August 20, 2020 On 19/8/2563 at 9:12 AM, Bobby Gord said: Mr wasan do you know what the parameter settings are for the magellan 1100i scanner, I used your ladder but after the first scan, there was no change in the second scan. it stuck in first barcode scanned Maybe you should check that which delimiter that your scanner use for QJ71C24N are H0D0A. You need to match this from QJ71C24N and scanner.
Bobby Gord Posted August 21, 2020 Report Posted August 21, 2020 Can you tell me, how to check the delimiter please....
Wasan Posted August 22, 2020 Report Posted August 22, 2020 23 hours ago, Bobby Gord said: Can you tell me, how to check the delimiter please.... You can check on this photo from Magellan 1100i manual as shown below. If it stay default it should be 0Dh (<CR>) and in PLC delimiter setting should be 0D too On 14/9/2561 at 1:43 PM, diraemon said: 2. Adjust Footer Receive from 3338 (<CR LF>, [H0D0A]) to 13 (<CR>, [H0D]) then Save parameter to PLC
Bobby Gord Posted August 24, 2020 Report Posted August 24, 2020 Mr. Wasan can you tell me to store the scanning result into database, variable or anything inside the PLC? i need to store more than 100 scanning result here is the barcode Thank you......
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now