
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)"
■
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
: 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
● 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),
dXStartPosition:=fSetXPosition,dYStartPosition:=fSetYPosition,
ncprog :=CNC_Table1,bExecute:=TRUE);
Interpolator2D(Axisx:=X_Drive,Axisy:=Y_Drive,bExecute:=TRUE,
poqDataIn:=NCDecoder.poqDataOut,dwIpoTime:=1000,);
END_IF
● Explanation of control section
11.5 Multi-axis Operation
11-82
WUME-GM1RTXOP-01
Summary of Contents for GM1 Series
Page 1: ...Motion Controller GM1 Controller RTEX User s Manual Operation WUME GM1RTXOP 01 2021 2 ...
Page 2: ... MEMO 2 WUME GM1RTXOP 01 ...
Page 6: ... MEMO vi WUME GM1RTXOP 01 ...
Page 16: ... MEMO xvi WUME GM1RTXOP 01 ...
Page 20: ...1 3 Software License Agreement 1 3 Software License Agreement 1 4 WUME GM1RTXOP 01 ...
Page 21: ...1 3 Software License Agreement WUME GM1RTXOP 01 1 5 ...
Page 22: ...1 3 Software License Agreement 1 6 WUME GM1RTXOP 01 ...
Page 28: ... MEMO 2 6 WUME GM1RTXOP 01 ...
Page 66: ... MEMO 3 38 WUME GM1RTXOP 01 ...
Page 76: ...4 6 Project Configuration 4 6 Project Configuration 4 10 WUME GM1RTXOP 01 ...
Page 102: ... MEMO 4 36 WUME GM1RTXOP 01 ...
Page 231: ...The POU object of the program will be added to the task 7 9 Tasks WUME GM1RTXOP 01 7 65 ...
Page 240: ...8 2 Connecting the GM1 Controller and PC 8 4 WUME GM1RTXOP 01 ...
Page 270: ... MEMO 8 34 WUME GM1RTXOP 01 ...
Page 287: ...9 4 Monitoring Function WUME GM1RTXOP 01 9 17 ...
Page 299: ...9 7 Device Trace Function WUME GM1RTXOP 01 9 29 ...
Page 300: ...9 7 Device Trace Function 9 30 WUME GM1RTXOP 01 ...
Page 314: ... MEMO 9 44 WUME GM1RTXOP 01 ...
Page 362: ... MEMO 10 48 WUME GM1RTXOP 01 ...
Page 372: ...When Modulo is selected 11 1 RTEX Axis Setting 11 10 WUME GM1RTXOP 01 ...
Page 394: ...11 3 Single axis Operation 11 32 WUME GM1RTXOP 01 ...
Page 397: ...ST program 11 3 Single axis Operation WUME GM1RTXOP 01 11 35 ...
Page 399: ...ST program 11 3 Single axis Operation WUME GM1RTXOP 01 11 37 ...
Page 407: ...11 4 Synchronous Operation WUME GM1RTXOP 01 11 45 ...
Page 418: ... Preinterpolation tab 11 5 Multi axis Operation 11 56 WUME GM1RTXOP 01 ...
Page 419: ... Table editor tab 11 5 Multi axis Operation WUME GM1RTXOP 01 11 57 ...
Page 421: ... Common tab Build tab 11 5 Multi axis Operation WUME GM1RTXOP 01 11 59 ...
Page 422: ... Access Control tab 11 5 Multi axis Operation 11 60 WUME GM1RTXOP 01 ...
Page 462: ... MEMO 11 100 WUME GM1RTXOP 01 ...
Page 479: ...ST program 12 5 PWM Output WUME GM1RTXOP 01 12 17 ...
Page 526: ... MEMO 12 64 WUME GM1RTXOP 01 ...
Page 587: ...Implementation section ST programming language 14 1 SD Card Access WUME GM1RTXOP 01 14 5 ...
Page 588: ...Implementation section LD programming language 14 1 SD Card Access 14 6 WUME GM1RTXOP 01 ...
Page 591: ...Implementation section LD programming language 14 1 SD Card Access WUME GM1RTXOP 01 14 9 ...
Page 598: ... MEMO 14 16 WUME GM1RTXOP 01 ...
Page 646: ... MEMO App 4 WUME GM1RTXOP 01 ...
Page 648: ... MEMO WUME GM1RTXOP 01 ...
Page 649: ... MEMO WUME GM1RTXOP 01 ...
Page 650: ...Panasonic Corporation 2021 February 2021 WUME GM1RTXOP 01 ...