Change variable values, L-force | plc designer – Lenze PLC Designer PLC Designer (R3-1) User Manual

Page 631

Advertising
background image

L-force | PLC Designer

General Editors

DMS 4.1 EN 03/2011 TD29

629

G-Code

N0 G92 X0 Y0
N10 G91 (Relative mode)
N20 G01 X10 Y10 F100 (Motion to the distance 10/10)
N25 G75
N30 G20 L20 O$x$ (Jump, if counter != 0)

Change variable values
Command G36, G37
In DIN66025 the user can write or modify variables via the commands G36 and G37.
The variable to be changed is specified by O$var$. The value to be written (G36) resp.
added (G37) to the variable is specified by D.

Allowed syntax
G36 O D

Parameters of the command

O

Variable to be written. If O is not specified, the internal decoder variable is
used.

D

New variable value


G37 O D

Parameters of the command

O

Variable to be incremented. If O is not specified, the internal decoder
variable is used.

D

Increment

Advertising