·872·
Installation manual
CNC 8060
CNC 8065
10.
CNC VARIABLES.
(REF: 1402)
Variables related to the electronic cam.
10.54 Variables related to the electronic cam.
(V.)G.CAMST[cam]
Variable that can only be read from the program, PLC and interface.
The variable returns the execution value; reading it interrupts block preparation.
Cam status.
Use this variable in the PLC program to condition the cam operations to the right status and
consequently prevent execution errors. The operations of the cam from the part-program stay
in execution, without issuing an error message, waiting for the right cam status.
Syntax.
·cam· Cam number.
Values of the variable.
This variable returns one of the following values.
V.G.CAMST[2] Cam ·2·.
Value. Meaning.
0 CAM_NULL
The cam does not exist. The cam is not defined in the machine parameters and there
is no file cam available, the CNC or the PLC have not selected it (SELECT) or they
have deselected it (DESELECT).
• This state only allows loading one file cam from the CNC or PLC.
• This status does not allow activating the cam, either from the CNC or from the
PLC.
1 CAM_LOADING
The CNC or the PLC is loading the file that defines the cam.
• This state only allows activating the cam from the CNC, where the CNC will
remain in execution until the cam reaches the CAM_READY state. The cam
cannot be activated from the PLC.
2 CAM_READY
Cam ready. The CNC has validated the cam defined in the machine parameters or
is done loading the cam from a file.
• This state allows any cam operation, either from the CNC or from the PLC.
3 CAM_START
The cam is activated, but it has not entered the range of the master axis yet. In this
situation, if the CNC or the PLC cancels the cam, the cam will not reach the
CAM_READY state as long as it does not go into and out of the range of the master
axis at least once.
• This state allows canceling the cam, either from the CNC or from the PLC.
• This state allows deselecting the cam, but only from the CNC.
4 CAM_RUNNING_OUTSIDE
The cam is active and in execution out of the range of the master axis. In this state,
the cam has been inside the range of the master axis at least once. If the CNC or
the PLC cancel the cam, the cam will go into CAM_READY state.
• This state allows canceling the cam, either from the CNC or from the PLC.
• This state allows deselecting the cam, but only from the CNC.
5 CAM_RUNNING_INSIDE
The cam is active and in execution inside the range of the master axis. If the CNC
or the PLC cancel the cam, the cam will go into CAM_FINISH state.
• This state allows canceling the cam, either from the CNC or from the PLC.
• This state allows deselecting the cam, but only from the CNC.
6 CAM_FINISH
The CNC or the PLC has canceled the cam, but it keeps executing until the cam goes
out of the range of the master axis. This situation occurs when the CNC or the PLC
cancel a cam that was in CAM_RUNNING_INSIDE state; if they cancel a cam that
was in CAM_RUNNING_OUTSIDE state, the cam reaches the CAM_READY state.
• This state only allows deselecting the cam, but only from the CNC.