St@ -38, String -11, Syntax – Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual

Page 188: Example, Purpose

Advertising
background image

Publication 1746-RM001A-US-P

12-38 Output Functions

Syntax

PH0., PH1.

Example

>PH0.2*2

04H

>PH1.2*2

0004H

>PH0. 100

64H

>PH0. 1000

3E8H

>PH1. 1000

03E8H

>PH1. 3E8

3.0 E+8

>PH0. PI

03H

>

ST@

Purpose

Use the ST@ statement to store module floating point numbers to a specified
address. The expression [expr] following the ST@ statement specifies the address
where the number is stored in RAM. The ST@ statement takes the value on the
top of the argument stack and stores it in RAM at the address location specified by
[expr].

This statement can be used with CALL 77 to store variables to a protected area of
memory. This protected area is not zeroed on powerup or when the RUN
command is issued.

Syntax

ST@ [expr]

Example

>P. MTOP

24515

Advertising