G-Code

Morten

Member
Join Date
Nov 2004
Posts
1
Hello, PLC programmers!

I'd like to read about combining G-code with PLC Instruction List.

G-code is familiar to me,
it is standarized in ISO / DIS 6983.

possible in other standards.

But when I learn and program in PLC
very little about communicating between G-Code and IEC 1131-3 is published.

Please help,

best regards

morten
 
Hi Morten,
I'm not sure what you mean by "combining". There aren't PLCs programmed in G-code I know of. The only possibility I'm aware is interfacing between these two. And the way it's done is properytary to a manufacturer.
In IEC world there's someting called "motion control library". Set of definitions of functions blocks allowing PLC program to interact/interface with motion control platforms.
 
G code is the language used to program CNC machines.

Usually communication is done by some sore of manufacturer specific function block. Each is different.

M codes for example. Indramat has two FB's. One for recieving the M code where the number is a parameter, and one for acknowleging it.
 
The only PLC piece I can think of that has... no, not G-code, but something very syntaxically similar is one of the servo control modules for Omron C200 (don't remember the actual part number).

G-codes can do many things, but they were designed primarily for complex motion programming. Programming sequential operations with G-codes, although possible, is a royal pain. That's why most CNC controllers support some kind of sequential non-G-code programming - usually a primitive form of good old ladder logic.

PLCs, on the other hand, though capable of doing pretty complex coordinated motions, were never intended to replace CNC things. So it is very unlikely G-codes would ever be supported in a PLC. It is not worth it, IMHO.
 

Similar Topics

Hi! I want to understand this code, who does is word. IF #"Sample timer".Q =1 THEN FOR #Ic := 1 TO 16 DO IF ((#Ic + 1) < 17) THEN //<...
Replies
7
Views
202
I'm working on learning OOP coding for TwinCat 3. I'd like to transfer and optimize the code my company has from AB Studio 5000 to ST TwinCat 3...
Replies
1
Views
101
in allen bradley kinetix 300 drive first E31 error shows after resting drive E11 error occurs need solution to reset E11 fault code
Replies
4
Views
182
Hello, I am trying to read a barcode scanner input using a cognex dataman 280 barcode reader, store it another string, the compare with another...
Replies
1
Views
114
Hi there, I'm new to plc programming and was wondering why I get this error code when I run my simulation for these temperature sensors? What I'm...
Replies
2
Views
107
Back
Top Bottom