Panasonic GM1 User Manual page 447

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

Advertisement

For SMC_CNC_REF
Starting coordinates can be specified in PMC_NCDecoder when decoding is executed.
Variable declaration section:
//FB instances
NCDecoder
Interpolator2D
ReadSetPosition
//Variables
buf
fSetXPosition
fSetYPosition
bStart
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),pbyBufferOutQueue :=
ADR(buf),dXStartPosition:=fSetXPosition,dYStartPositon:=fSetYPosition,
Interpolator2D(Axisx:=X_Drive,Axisy:=Y_Drive,bExecute:=TRUE,
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.
WUME-GM1RTXOP-01
: PMC_NCDecoder;
: PMC_ Interpolator2D;
: SMC_ReadSetPosition
: ARRAY[0..10] OF SMC_GEOINFO;
: LREAL;
: LREAL;
: BOOL;
ncprog := CNC_Table1,bExecute:=TRUE);
poqDataIn:=NCDecoder.poqDataOut,dwIpoTime:=1000);
11.5 Multi-axis Operation
//Read current value
//Buffer for decoding
//Current value on X-axis
//Current value on Y-axis
//Execution flag
11-85

Advertisement

Table of Contents
loading

This manual is also suitable for:

Gm1 series

Table of Contents