Call 109: print the argument stack – Rockwell Automation 1771-DB BASIC MODULE User Manual

Page 302

Advertising
background image

Chapter
Call Routines 69–127

13

13 -44

Syntax

PUSH

operational code

PUSH

poll timeout or ACKnowledge timeout

PUSH

message retries or ENQuiry retries

PUSH

RTS On delay or NAK received retries

PUSH

RTS Off delay or NULL value

PUSH

BASIC module DF1 address

CALL 108

Example

>1 REM EXAMPLE PROGRAM

>10 PUSH 5 : REM HDMWOCC, ENABLE DPD, BCC ERROR CHECKING

>20 PUSH 200 : REM WAIT 1 SECOND TO BE POLLED BY MASTER

>30 PUSH 2 : REM PERFORM 2 RETRIES

>40 PUSH 4 : REM 20 MS RTS ON DELAY

>50 PUSH 4 : REM 20 MS RTS OFF DELAY

>60 PUSH 10 : REM BASIC MODULE ADDRESS OF 10

>70 CALL 108

>80 END

Use CALL 109 to prints the top 9 values on the argument stack to the
console. Use this information as a troubleshooting aid. It does not affect
the contents of or pointer to the stack.

Input and Output Arguments

This routine has no input or output arguments.

Syntax

CALL 109

Example

>CALL 109

1C9H 00H 00H 00H 00H 00H 00H

1CFH 00H 00H 00H 00H 00H 00H

1D5H 00H 00H 00H 00H 00H 00H

1DBH 13H 04H 00H 00H 00H 7CH

1E1H 14H 42H 11H 96H 00H 83H

1E7H 11H 05H 92H 00H 00H 88H

1EDH 10H 00H 00H 00H 00H 84H

1F3H 20H 00H 00H 00H 00H 82H

1F9H 00H 00H 00H 00H 00H 00H

Argument stack pointer is: 01FEH

CALL 109: Print the
Argument Stack

Advertising