Pulser3 Programming Manual Download PDF

Commands Redirected to the Subprogram

When the subprogram redirection command is detected, the commands within this code block are not processed by the interpreter and are instead loaded into variables numbered #8000~#8049 and #8100~#8149. Thus, these commands can be controlled within the subprogram and used for different purposes.

In the code block specified below, the system detects that a subprogram is called and does not send a movement command to the X-axis. Instead, it loads the value 1000000 into variable #8000 and the value 1 into variable #8100. As indicated in the table below, the formats of the commands are divided into integers and decimal numbers. Since axis commands are in decimal, the command 100.0000 is interpreted without the decimal point (1000000) and loaded into variable #8000.

Main Program

 

O0001(MAIN PROG)

M98 P1000 G00 X100 (CALL SUBPROGRAM O1000.cnc)

M30                (END OF THE PROGRAM)

%

 

 

Sub Program (O1000.cnc)

 

O1000(SUB PROG)

IF #8100 == 0 THEN GOTO 99 (RETURN IF NO X COMMAND GIVEN)

X#8000             (MOVE X AXIS)

N99 M99            (RETURN TO MAIN PROGRAM)

%

 

 

Address

Variable

Description

Format

16000~16001

#8000

X Axis value in the line directed to subprogram

0.0000

16002~16003

#8001

Y Axis value in the line directed to subprogram

0.0000

16004~16005

#8002

Z Axis value in the line directed to subprogram

0.0000

16006~16007

#8003

4th Axis value in the line directed to subprogram

0.0000

16008~16009

#8004

5th Axis value in the line directed to subprogram

0.0000

16010~16011

#8005

6th Axis value in the line directed to subprogram

0.0000

16012~16013

#8006

7th Axis value in the line directed to subprogram

0.0000

16014~16015

#8007

8th Axis value in the line directed to subprogram

0.0000

 

 

 

 

16018~16019

#8009

D value in the line directed to subprogram

0

16020~16021

#8010

F value in the line directed to subprogram

0.0000

16022~16023

#8011

H value in the line directed to subprogram

0

16024~16025

#8012

I value in the line directed to subprogram

0.0000

16026~16027

#8013

J value in the line directed to subprogram

0.0000

16028~16029

#8014

K value in the line directed to subprogram

0.0000

16030~16031

#8015

L value in the line directed to subprogram

0

16032~16033

#8016

M value in the line directed to subprogram

0

 

 

 

 

16036~16037

#8018

P value in the line directed to subprogram

0

16038~16039

#8019

Q value in the line directed to subprogram

0.0000

16040~16041

#8020

R value in the line directed to subprogram

0.0000

16042~16043

#8021

S value in the line directed to subprogram

0

16044~16045

#8022

T value in the line directed to subprogram

0

16044~16045

#8023

B value in the line directed to subprogram

0

 

 

 

 

16060~16061

#8030

Group 0 G value in the line directed to subprogram

0.0

16062~16063

#8031

Group 1 G value in the line directed to subprogram

0.0

16064~16065

#8032

Group 2 G value in the line directed to subprogram

0.0

16066~16067

#8033

Group 3 G value in the line directed to subprogram

0.0

16068~16069

#8034

Group 4 G value in the line directed to subprogram

0.0

16070~16071

#8035

Group 5 G value in the line directed to subprogram

0.0

16072~16073

#8036

Group 6 G value in the line directed to subprogram

0.0

16074~16075

#8037

Group 7 G value in the line directed to subprogram

0.0

16076~16077

#8038

Group 8 G value in the line directed to subprogram

0.0

16078~16079

#8039

Group 9 G value in the line directed to subprogram

0.0

16080~16081

#8040

Group 10 G value in the line directed to subprogram

0.0

16082~16083

#8041

Group 11 G value in the line directed to subprogram

0.0

16084~16085

#8042

Group 12 G value in the line directed to subprogram

0.0

16086~16087

#8043

Group 13 G value in the line directed to subprogram

0.0

16088~16089

#8044

Group 14 G value in the line directed to subprogram

0.0

16090~16091

#8045

Group 15 G value in the line directed to subprogram

0.0

16092~16093

#8046

Group 16 G value in the line directed to subprogram

0.0

16094~16095

#8047

Group 17 G value in the line directed to subprogram

0.0

16096~16097

#8048

Group 18 G value in the line directed to subprogram

0.0

16098~16099

#8049

Group 19 G value in the line directed to subprogram

0.0

 

Addres

Variable

Description

Format

16200~16201

#8100

X Axis bit in the line directed to subprogram

0

16202~16203

#8101

Y Axis bit in the line directed to subprogram

0

16204~16205

#8102

Z Axis bit in the line directed to subprogram

0

16206~16207

#8103

4th Axis bit in the line directed to subprogram

0

16208~16209

#8104

5th Axis bit in the line directed to subprogram

0

16210~16211

#8105

6th Axis bit in the line directed to subprogram

0

16212~16213

#8106

7th Axis bit in the line directed to subprogram

0

16214~16215

#8107

8th Axis bit in the line directed to subprogram

0

 

 

 

 

16218~16219

#8109

D bit in the line directed to subprogram

0

16220~16221

#8110

F bit in the line directed to subprogram

0

16222~16223

#8111

H bit in the line directed to subprogram

0

16224~16225

#8112

I bit in the line directed to subprogram

0

16226~16227

#8113

J bit in the line directed to subprogram

0

16228~16229

#8114

K bit in the line directed to subprogram

0

16230~16231

#8115

L bit in the line directed to subprogram

0

16232~16233

#8116

M bit in the line directed to subprogram

0

 

 

 

 

16236~16237

#8118

P bit in the line directed to subprogram

0

16238~16239

#8119

Q bit in the line directed to subprogram

0

16240~16241

#8120

R bit in the line directed to subprogram

0

16242~16243

#8121

S bit in the line directed to subprogram

0

16244~16245

#8122

T bit in the line directed to subprogram

0

16244~16245

#8123

B bit in the line directed to subprogram

0

 

 

 

 

16260~16261

#8130

Group 0 G bit in the line directed to subprogram

0

16262~16263

#8131

Group 1 G bit in the line directed to subprogram

0

16264~16265

#8132

Group 2 G bit in the line directed to subprogram

0

16266~16267

#8133

Group 3 G bit in the line directed to subprogram

0

16268~16269

#8134

Group 4 G bit in the line directed to subprogram

0

16270~16271

#8135

Group 5 G bit in the line directed to subprogram

0

16272~16273

#8136

Group 6 G bit in the line directed to subprogram

0

16274~16275

#8137

Group 7 G bit in the line directed to subprogram

0

16276~16277

#8138

Group 8 G bit in the line directed to subprogram

0

16278~16279

#8139

Group 9 G bit in the line directed to subprogram

0

16280~16281

#8140

Group 10 G bit in the line directed to subprogram

0

16282~16283

#8141

Group 11 G bit in the line directed to subprogram

0

16284~16285

#8142

Group 12 G bit in the line directed to subprogram

0

16286~16287

#8143

Group 13 G bit in the line directed to subprogram

0

16288~16289

#8144

Group 14 G bit in the line directed to subprogram

0

16290~16291

#8145

Group 15 G bit in the line directed to subprogram

0

16292~16293

#8146

Group 16 G bit in the line directed to subprogram

0

16294~16295

#8147

Group 17 G bit in the line directed to subprogram

0

16296~16297

#8148

Group 18 G bit in the line directed to subprogram

0

16298~16299

#8149

Group 19 G bit in the line directed to subprogram

0