beautypg.com

Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual

Page 259

background image

Publication 1746-RM001A-US-P

BASIC Command, Statement, and CALL Quick Reference Guide B-3

CALL 40

PUSH [hours]
PUSH [minutes]
PUSH [seconds]

Set clock/calendar time (hour, minute, second).

10-1

CALL 41

PUSH [date]
PUSH [month]
PUSH [year]

Set clock/calendar date (day, month, year).

10-2

CALL 42

PUSH [day of week]

Set clock/calendar – day of week.

10-3

CALL 43

PUSH [string number]

Retrieve date/time string.

10-4

CALL 44

POP [day]
POP [month]
POP [year]

Retrieve date numeric (day, month, year).

10-4

CALL 45

PUSH [string number]

Retrieve time string.

10-5

CALL 46

POP [hour]
POP [minute]
POP [second]

Retrieve time numeric.

10-6

CALL 47

PUSH [string number]

Retrieve day of week string.

10-6

CALL 48

POP [day of week]

Retrieve day of week numeri

c.

10-7

CALL 51

POP [output image buffer status]

Check CPU output image buffer.

11-3

CALL 52

PUSH [string number]

Retrieve date string.

10-7

CALL 53

POP [processor status]

Transfer CPU output image buffer to module
input buffer.

13-17

CALL 54

POP [processor mode]

Transfer module output buffer to CPU input
image buffer.

12-15

CALL 55

POP [input image buffer status]

Check CPU input image buffer.

11-4

CALL 56

PUSH [number of words to be transferred]
POP [processor status]

Transfer CPU M0 file to module input buffer.

13-18

CALL 57

PUSH [number of words to be transferred]
POP [processor mode]

Transfer module output buffer to CPU M1 file.

12-16

CALL 58

POP [module file M0 write status]

Check M0 file status.

11-5

CALL 59

POP [module file M1 read status]

Check M1 file status.

11-6

CALL 60

PUSH [number of times to repeat character]
PUSH [base string number]

String repeat

15-1

CALL 61

PUSH [string number to be appended]
PUSH [base string number]

String append (concatenation)

15-2

CALL 62

PUSH [number to convert to string]
PUSH [string number to receive the value]

Number to string conversion

15-3

CALL 63

PUSH [string number to convert]
POP [validity of the value]
POP [actual value]

String to number conversion

15-4

Mnemonic

Required PUSHes or POPs

Description

Active In

Command

Mode

Only

Page