Hello Guest it is January 22, 2022, 03:25:03 PM

Author Topic: PLC to read G-Code via Modbus  (Read 5681 times)

0 Members and 1 Guest are viewing this topic.

PLC to read G-Code via Modbus
« 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,

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: PLC to read G-Code via Modbus
« Reply #1 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
fun times