curiousiya Posted September 21, 2020 Report Share Posted September 21, 2020 Hi! I'm new to this forum so please be patient with me. I'm trying to automate a cable cutter that uses Unitronix M90. I want it to load a certain length and quantity when I scan a barcode. Have any of you sirs connected M90's RS232 to the serial of Raspberry Pi? Is there a set of code to send to the M90 for it to be able to communicate? Sorry the machine is always running and I need data before I can try and test. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted September 21, 2020 MVP 2022 Report Share Posted September 21, 2020 I have talked to an M90 via RS232 from a PC, so you can certainly do it with a Pi. Code has to be added to the M90's program to receive serial data as you describe. You will need the M90 program for this - do you have it? An M90 is not an expensive piece of hardware - I would recommend you get another one for testing and then you'll have a spare. You'll also need a serial cable - part number RS232-CBL. You should be able to upload the program from the M90 - there wasn't a lot of copy protection in place when these were made. Joe T. Quote Link to comment Share on other sites More sharing options...
AlexUT Posted September 21, 2020 Report Share Posted September 21, 2020 Raspberry PI serial ports are TTL (unipolar, low level). You cannot use it for direct connection to other non-TTL devices. Communication to PC use RS232 bipolar signals. You have to use any available TTL-to-RS232 converter, either shild, HAT, or other one. When hardware interface will be connected, you can continue with PI and PLC programming. You can read details at next link: https://elinux.org/RPi_Serial_Connection#:~:text=The Raspberry Pi serial port,the other%2C and vice versa. B.R. Quote Link to comment Share on other sites More sharing options...
Philippe Posted December 26, 2020 Report Share Posted December 26, 2020 Communication between an M90 and a Raspberry. I would like to be able to read the different values inside the M90, MB, MI or other values. Did you manage to read this data? If yes, how did you proceed? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.