Panasonic GM1 User Manual page 456

Motion controller controller rtex
Hide thumbs Also See for GM1:
Table of Contents

Advertisement

11.5 Multi-axis Operation
SMC_OUTQUEUE which is output is executed as a CNC table in PMC_Interpolator2D or
PMC_Interpolator3D.
Joining CNC tables: C-point control [PMC_Interpolator 2D(3D)]
[Setting example 1] ST program example: PMC_NCDecoder
G-code: CNC_Table
N01 G01 X10 Y0 F10 E100 E-100
N02 G01 X10 Y10
N03 G01 X0 Y0
Variable declaration section:
//FB instances
NCDecoder
Interpolator2D
//Variables
buf: ARRAY[0..6] OF SMC_GEOINFO;
iSequence:
bDec
bStart
iCount
Control section:
NCDecoder(nSizeOutQueue := SIZEOF(buf),pbyBufferOutQueue := ADR(buf),
Interpolator2D(Axisx:=X_Drive,Axisy:=Y_Drive,bExecute:=bStart,
Case iSequence THEN
1:
END_CASE
● NCDecoder is executed the specified number of repetitions. (In the above example,
NCDecoder is repeated three times.)
11-94
: PMC_NCDecoder;
: PMC_ Interpolator2D;
: INT;
: BOOL;
: BOOL;
: INT:=0;
ncprog := CNC_Table,bExecute:= bDec, bAppend:=TRUE);
poqDataIn:=NCDecoder.poqDataOut,dwIpoTime:=1000,);
bDec:=TRUE;
bStart:=TRUE;
IF NCDecoder.bDone THEN
iCount := iCount + 1;
IF iCount < 3 THEN
bDec:=FALSE;
END_IF
END_IF
//Buffer for decoding
//Execution control No.
//Decode flag
//Interpolation control execution
flag
//Specified number of
repetitions
WUME-GM1RTXOP-01

Advertisement

Table of Contents
loading

This manual is also suitable for:

Gm1 series

Table of Contents