MiMoSVK Posted July 15, 2021 Report Share Posted July 15, 2021 Hello, I am still learning how to work in Visilogic. I know how to make programs with lines of code, but programming in ladder is a bit different and I am still getting hang of it. One thing I can't understand properly is the communication between PLCs and the possibilites of communication with the computer. What comes to PLC, my first encounter with it was with Arduino. I used it to give another life to my dashboard in car, and connected it to computer with serial communication, which I processed with Python. If anyone was interested, here is a video: https://www.youtube.com/watch?v=4ZL53YbkdXY (there are Slovak captions). Is there something similar possible with Unitronics PLCs? I need to send some of the variables via serial communication so I can process them further with Python (I know how to do the Python part with pyserial, my question is how to send data with Visilogic). I use SM35-J-R20 without ethernet card, so I see serial communication as my only option. Thank you in advance, best regards Š.K. Link to comment Share on other sites More sharing options...
DanT Posted July 15, 2021 Report Share Posted July 15, 2021 Hi; In the Ribbon starting with Boolean, go to the end and under FB's there is Protocol Protocol is a method to compose messages to be send or received over the Serial Port. You can create simple or complex messages depending on the device you are communicating with and it's methods of sending and receiving messages. You can also receive and decode the messages from the device. Variables ( MI's, MB's, and others ) can be inserted or extracted from the messages. Review the Help for Protocol, and the Example programs ( Help - Examples - Communications - FB Protocols ) to learn how to effectively use this function. DanT Link to comment Share on other sites More sharing options...
tanaka Posted October 1, 2021 Report Share Posted October 1, 2021 hi, i been try to do serial communication of unistream (us10) PLC with arduino (nano) via the USB H port on the PLC. i can successfully send control characters to the arduino using a USB to TTL cable. the problem now is i want to be sending different sensory values from the arduino to the PLC and im not able to receive or send any other value besides the control charecter in the message composer section. How exactly can i setup my message composer to receive such kind of data and is there any limitation is using the USB to ttl cable instead of using the RS232 modules Link to comment Share on other sites More sharing options...
tanaka Posted October 18, 2021 Report Share Posted October 18, 2021 I have succeeded in the mini USB PLC to Arduino NANO interface using the USB to TTL cable, thankyou, the problem was on the data types of my transfer and reception storage variables Link to comment Share on other sites More sharing options...
AlexUT Posted October 18, 2021 Report Share Posted October 18, 2021 Well done!!! Link to comment Share on other sites More sharing options...
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