Installation manual
CNC 8055
CNC 8055i
PLC PROGRAMMING
10.
SOFT: V02.2X
·469·
Action instructions
10.5.6 Specific action instructions
= ERA
Used to delete a group of resources. Indicate the first and last resource to be erased.
Their programming formats are:
The marks can be M1/2047, M4000/4127, M4500/4563, M4700/4955 or M5000/5957 and registers
R1/559
When deleting a group of I, O, M or R, the PLC sets them to "0".
If a group of timers is erased this is the equivalent of Resetting them, while, if a group of counters
is erased this is similar to presetting them with a 0 value.
This action is especially useful in the first cycle module (CY1) to set the desired resources to their
initial work conditions.
Examples:
I12 = ERA O5 12
If input I12 has a value of "1" the PLC will set to 0 outputs O5 thru O12.
I23 = ERA C15 18
If input "I23 =1", the PLC presets counters C15 through C18 (both included) to "0".
= CNCRD, = CNCWR
Access to the internal CNC variables.
Used to read (CNCRD) and write (CNCWR) the internal CNC variables. Their programming format
is:
CNCRD (Variable, Register, Mark)
CNCWR (Register, Variable, Mark)
The CNCRD action loads the contents of the variable into the register and the CNCWR action loads
the contents of the register into the variable.
The internal CNC variables are described in the chapter on ?"CNC-PLC communication".
The mark is set to "1" at the beginning of the operation and it keeps its value until the end of the
operation.
When requesting information on a nonexistent variable (for example the position of an nonexistent
axis), it will show the relevant error message.
Examples:
CNCRD (FEED, R150, M200)
Loads into register R150 the feedrate value selected at the CNC by means of function G94.
CNCWR (R92, TIMER, M200)
It resets the clock enabled by the PLC with the value contained in register R92.
ERA I 1/512 1/512
O 1/512 1/512
M 1/5957 1/5957
T 1/256 1/256
C 1/256 1/256
R 1/559 1/559