EasyManua.ls Logo

Panasonic GM1 - Page 447

Panasonic GM1
650 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
For SMC_CNC_REF
Starting coordinates can be specified in PMC_NCDecoder when decoding is executed.
Variable declaration section:
//FB instances
NCDecoder : PMC_NCDecoder;
Interpolator2D : PMC_ Interpolator2D;
ReadSetPosition : SMC_ReadSetPosition //Read current value
//Variables
buf : ARRAY[0..10] OF SMC_GEOINFO; //Buffer for decoding
fSetXPosition : LREAL; //Current value on X-axis
fSetYPosition : LREAL; //Current value on Y-axis
bStart : BOOL; //Execution flag
Control section:
IF bStart THEN
ReadSetPosition(Axisx:=X_Drive,Enable:=TRUE, Position=>fSetXPosition)
ReadSetPosition(Axisy:=Y_Drive,Enable:=TRUE, Position=>fSetYPosition)
NCDecoder(nSizeOutQueue := SIZEOF(buf),pbyBuf
ferOutQueue :=
ADR(buf),dXStartPosition:=fSetXPosition,dYStartPositon:=fSetYPosition,
ncprog := CNC_Table1,bExecute:=TRUE);
Interpolator2D(Axisx:=X_Drive,Axisy:=Y_Drive,bExecute:=TRUE,
poqDataIn:=NCDecoder.poqDataOut,dwIpoTime:=1000);
END_IF
When operation is started, SMC_ReadSetPosition reads the current coordinates and
PMC_NCDecoder specifies the coordinates as starting coordinates.
If the specified starting coordinates differ from the operation starting coordinates, there is a
risk that rapid movement may occur
.
For SMC_OUTQUEUE
1. Right-click a CNC table that has been created and select "Properties" from the context-
sensitive menu that is displayed.
11.5 Multi-axis Operation
WUME-GM1RTXOP-01 11-85

Table of Contents

Related product manuals