Rockwell-automation 1746-BAS BASIC LANGUAGE User Manual Page 135

  • Download
  • Add to my manuals
  • Print
  • Page
    / 280
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 134
Publication 1746-RM001A-US-P
Status Functions 11-5
CALL 58 – Check M0 File
Purpose
Use CALL 58 to determine if the Module File M0 located in the module has been
updated since the last time it was checked. (In this case, update means that the data
was written to these buffers from the CPU, even if the data is the same value.) This
routine has no input argument and one output argument.
The output argument is equal to:
0 – if the Logic Processor has not written to the Module File M0 since the last
time this CALL was executed or since the module was powered up
1 – if the Logic Processor has written to the Module File M0 since the last
time this CALL was executed or since the module was powered up, whichever
occurred last
2 – if the Logic Processor does not support this capability (as with the SLC 5/
01 processor)
Syntax
CALL 58
POP[module file M0 write status]
Example
>1 REM EXAMPLE PROGRAM
>120 CALL 58 : REM START WAITING ON M0 UPDATE
>130 POP S
>140 IF (S = 2) THEN PRINT “PROCESSOR DOES NOT SUPPORT THIS
FUNCTION”
>150 IF (S = 2) THEN STOP
>160 IF (S = 0) THEN GOTO 120
>170 PUSH 64
>180 CALL 56
>190 POP A
>200 PRINT “CALL 56 OUTPUT IS ”,A
READY
>RUN
CALL 56 OUTPUT IS 0
Page view 134
1 2 ... 130 131 132 133 134 135 136 137 138 139 140 ... 279 280

Comments to this Manuals

No comments