GE 90-30/20/Micro manual Const -+FNC

Models: 90-30/20/Micro

1 311
Download 311 pages 52.91 Kb
Page 227
Image 227

4

Example:

In the following example, when called for by previous logic, a parameter block for the time-of-day clock is built to first request the current date and time, and then set the clock to 12 noon using the BCD format. The parameter block is located at global data location %R0300. Array NOON has been set up elsewhere in the program to contain the values 12, 0, and 0. (Array NOON must also contain the data at %R0300.) The BCD format requires six contiguous memory locations for the parameter block.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

_____

 

 

 

_____

 

 

 

 

 

FST_SCN

 

 

 

 

 

 

 

—— ———+MOVE_+—————————————————+MOVE_+-

 

 

 

 

 

 

 

 

 

 

 

INT

 

INT

 

 

 

 

 

 

 

 

 

 

 

 

CONST -IN

Q+- NOON

 

CONST -+IN Q+- MIN_SEC

 

 

 

 

 

 

 

 

 

 

+04608

LEN

 

+00000 LEN

 

 

 

 

 

00001

 

00001

 

 

 

 

 

_____

 

_____

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

_____

 

 

 

_____

 

 

 

_____

 

%I0016

 

 

 

 

%T0001

—— ———+MOVE_+—————————————————+MOVE_+—————————————————+ SVC_+—————————————( )-

 

 

 

 

 

INT

 

INT

 

 

REQ

 

 

 

 

 

 

CONST -+IN

Q+- %R0300

CONST -+IN Q+- %R0301

CONST -+FNC

 

 

 

 

 

 

+00000

LEN

 

+00001 LEN

 

 

+00007

 

00001

 

00001

 

 

 

_____

 

_____

 

 

%R0300 -+PARM

 

 

 

 

 

 

 

 

 

_____

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

_____

 

 

_____

 

 

 

%T0001

%I0017

 

 

 

 

 

—— ———— ————+ AND_+—————————————————+ ADD_+-

 

 

 

 

 

 

 

 

 

 

 

 

WORD

 

 

INT

 

 

 

 

 

 

 

 

 

 

%R0303 -+I1

Q+- %R0303 %R0303 -+I1

Q+- %R0303

 

 

 

 

 

 

 

 

 

CONST -+I2

 

NOON

-+I2

 

 

 

 

00FF _____

 

 

_____

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

_____

 

 

_____

 

_____

 

%T0001

%I0017

 

 

 

—— ————— ———+MOVE_+—————————————————+MOVE_+—————————————————+ SVC_+–

 

 

INT

 

 

INT

 

REQ

 

 

 

 

 

MIN_SEC-+IN

Q+- %R0304

CONST -+IN

Q+- %R0300 CONST -+FNC

 

 

LEN

 

+00001

LEN

 

+00007

 

 

00002

 

 

00001

 

 

 

_____

 

 

_____

%R0300 -+PARM

 

 

 

 

 

 

 

 

 

_____

 

 

 

 

 

 

 

 

 

 

 

4-146

Series 90-30/20/Micro Programmable Controllers Reference Manual–September 1998

GFK-0467K

Page 227
Image 227
GE 90-30/20/Micro manual Const -+FNC