Jump to content

Recommended Posts

Posted
hi guys i made a program with C++. i use camera for finding centre of object. it works well. It finds centres like 70 milimeters. now i want to send it to plc and not just once. this centre should go to plc always or when the camera see the object. i have no idea about that. i use visual studio and my plc is LS. please help me this photo is my program result.
Posted (edited)
Hello, That depends on what you want to send to the PLC. A Boolean that indicates the object is +- millimeters from center, the value of the millimeters from center, a part is detected, etc.. Edited by Mark-
Posted
I will send the object centre's coordinates. for example X=70, Y=150. i want to send that x to plc.. so i can take this object with a robot arm. my plc needs to know where this object now. regards thank you
Posted
Hello, OK, so the next question is do you want to use a communication protocol to the PLC or analog inputs on the PLC? For example, your program could be a MODBUS master and send the data to the PLC that is a MODBUS slave. Or you could use two analog inputs on the PLC; use a device attached to your PC and output the X/Y as analog outputs.
Posted
Hello, MODBUS is a communications protocol, actually there are several flavors. Search the web and you will find thousands of links. It is easy to implement and you will find source code.
Posted
Hi, It seems LS PLC ( diiferent types) has only Serial ports (RS-232 or RS-485). For this reason, you need to consider the serial communication. If you are going to Modbus, then Modbus RTU can be used with your PLC. However you may need a USB converter to connect it to your PC/Laptop. for this reason you may use RS-485 to USB converter like I-7561 http://www.icpdas-usa.com/i_7561u.html?r=mohsen If you are going to use Modbus TCP which is Modbus over Ethernet, you probaly will need MTCP to Serial converter as well. If so, you can use I-7188E3 http://www.icpdas-usa.com/i_7188e3_232.html?r=mohsen Good Luck

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...