Machsupport Forum

Third party software and hardware support forums. => Modbus => Topic started by: Azrael on July 02, 2014, 08:12:24 AM

Title: PLC to read G-Code via Modbus
Post by: Azrael on July 02, 2014, 08:12:24 AM
Hello,
I need to shift some data from G-Code to PLC. The G-Code file shall contain regular data, but part of file will contain few X and Y position that should be read by PLC via modbus. Can anyone help by giving an idea how to do this. All cooperation possibilities are included.
Thanks in advance,
Title: Re: PLC to read G-Code via Modbus
Post by: poppabear on July 04, 2014, 06:57:27 AM
Use a "Parameter" passing macro, you can pass up to 3 params, you could pass 2 params as posiiton....
or use Brains that a custom macro can turn on an LED, and when that LED is on, you pass the values of the X and Y DROs to
your output registers for modbus, but note, only INT's will pass not doubles, if you want/need doubles then you will have to break them apart and pass them seperatly, then recommbine at the PLC side.

SCott