Panasonic GM1 User Manual page 444

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

Advertisement

11.5 Multi-axis Operation
For the specifications of PMC_NCDecoder, refer to the GM1 Series Reference Manual
(Instruction).
For the programming method, refer to
PMC_Interpolator2D (2-axis interpolation)
The function block executes 2-axis interpolation control according to the specified CNC table.
For the detailed specifications of the function block, refer to the GM1 Series Reference Manual
(Instruction).
Programming method for PMC_Interpolator2D
[Setting example 1] ST program example: SMC_CNC_REF type CNC table
G-code (SMC_CNC_REF): CNC_Table1
N01 G01 X10 Y10 F10 E1 E-1
Variable declaration section:
//FB instances
NCDecoder
Interpolator2D
ReadSetPosition
//Variables
buf
fSetXPosition
fSetYPosition
bStart
● Explanation of declaration section
• In Lines 2 to 4, function blocks to be used are defined by assigning arbitrary names to
them.
• In Line 5, a buffer to be used for PMC_NCDecoder is defined.
Paths in the CNC table that are as many as arrays can be stored. (In the above example,
11 paths can be stored.)
* Note that if the buffer size is 5 or less, PMC_NCDecoder cannot be executed.
• In Line 6, a flag for starting execution is defined.
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),
Interpolator2D(Axisx:=X_Drive,Axisy:=Y_Drive,bExecute:=TRUE,
END_IF
● Explanation of control section
11-82
"PMC_Interpolator2D (2-axis
: PMC_NCDecoder;
: PMC_ Interpolator2D;
: SMC_ReadSetPosition
: ARRAY[0..10] OF SMC_GEOINFO;
: LREAL;
: LREAL;
: BOOL;
dXStartPosition:=fSetXPosition,dYStartPosition:=fSetYPosition,
ncprog :=CNC_Table1,bExecute:=TRUE);
poqDataIn:=NCDecoder.poqDataOut,dwIpoTime:=1000,);
interpolation)".
//Read current value
//Buffer for decoding
//Current value on X-axis
//Current value on Y-axis
//Execution flag
WUME-GM1RTXOP-01

Advertisement

Table of Contents
loading

This manual is also suitable for:

Gm1 series

Table of Contents