Programming manual
402
CNC 8070
14.
CNC VARIABLES
PLC related
(SOFT V02.0X)
384
14.11 PLC related
These variables are evaluated when being executed.
They have generic names.
• Replace the letter "i" with a number keeping the brackets.
This variable may be used to consult only the symbols defined with the PDEF command in the PLC
program.
(V.)PLC.I[n] V.PLC.I[16]
(V.)PLC.signal V.PLC.auxend
STATUS PRG PLC INT R W
(V.)PLC.STATUS
PLC status
"0" = Stopped "1" = Running
R—R——
RESOURCES PRG PLC INT R W
(V.)PLC.I[i]
Status of PLC input [i] R/W — R/W — —
(V.)PLC.O[i]
Status of PLC output [i] R/W — R/W — —
(V.)PLC.M[i]
Status of PLC mark [i] R/W — R/W — —
(V.)PLC.R[i]
Status of PLC register [i] R/W — R/W — —
(V.)PLC.T[i]
Status of PLC timer [i] R — R/W — —
(V.)PLC.C[i]
Status of PLC counter [i] R — R/W — —
(V.)PLC.signal
Status of exchange signals with CNC
(any mark or register)
R/W — R/W — —
SYMBOLS
PRG PLC INT R W
(V.)PLC.symbol
Status of the external symbols defined at the PLC R/W — R/W — —
MESSAGES
PRG PLC INT R W
(V.)PLC.MSG[i]
Status of PLC message [n]
"0" = Inactive "1" = Active
R/W — R/W — —
(V.)PLC.PRIORMSG
Active message with the highest priority (the one with
the lowest number among the active ones)
R—R——
(V.)PLC.EMERGMSG
Active emerging message (the one shown at full
screen)
R—R——
ERRORS
PRG PLC INT R W
(V.)PLC.ERR[i]
Status of PLC error [n]
"0" = Inactive "1" = Active
R/W — R/W — —
(V.)PLC.PRIORERR
Active error with the highest priority (the one with the
lowest number among the active ones)
R—R——
TIMER PRG PLC INT R W
(V.)PLC.TIMER
Value of the timer enabled by PLC R/W R/W R/W Syn Syn
The PLC "TIMER" is enabled or disabled with the PLC mark TIMERON. It counts when TIMERON=1
Using the variable (V.)PLC.TIMER, it is possible to consult and/or modify its count. Value in seconds.