GEM80-400
2. Controller Architecture and Program Operation
Issue 3 04/99
ALSPA GEM80-400 SERIES CONTROLLERS TECHNICAL MANUAL
Page 2-21
Function
Instruction
GEM 80
Special
Function
Remarks
Number of
Instruct-
ions
Number of
Table
Locations
used by
VALUE
Execution
Time in
µ
s
Integer
conversion
FIX
S79
Convert floating point to
BCD
2
-
-
10. Block
Instructions
Enclose
conditionally
executed rungs
START OF
BLOCK
-
Conditionally executed
block of ladder diagram
instructions can be nested
to a depth of 16
1
-
1.5
-
END OF
BLOCK
-
-
1
-
-
-
JUMP
-
JUMP forward to LABEL
-
-
-
-
LABEL
-
LABEL associated with
JUMP
-
-
-
-
SEQELEM
-
Sequence element
-
-
-
11. Data
Moving
Locate data
table address
LOCATE
S20
These two GEM 80 Special
Functions, S20 and T20, are
usually used together for
moving groups of data
from one area of memory
to another. May be used
for locating an internal
address required by
various GEM 80 Special
Functions. Provides pointer
to data table
2
1
100
Move data
between data
table addresses
MOVE
T20
Commonly used in
conjunction with S20,
moves blocks of data
tables
2
0 or 1
See Note 19
Cyclic store
STORE
T30
First in first out store
2
4 + N (See
Note 20)
130
Get word
GETWORD
S19
Indirect data access
2
1
96
Fill array
FILL
T17
Fill array with value
2
0 or 1
See Note 21
Put word
PUTWORD
T29
Indirect output of word
2
1
96
Collate
COLLATE
T37
Collates random bits or
words into a group of
adjacent data table
locations
1
0
See Note 22
12. Code
Conversion
BCD input
conversion
BCDIN
S1
Converts up to 4 decades
of BCD to binary
1
0
36
BCD output
conversion
BCDOUT
S2
Converts binary to up to 4
decades of binary coded
decimal
1
0
32
Convert gray
code to binary
GRAYBIN
S9
Converts gray code input
to binary
2
1
29
13. Serial Port
Alpha-
numeric
Input and
Output
Print text
PRITEXT
S38
Enables messages stored
in controller memory to b e
output to serial port/printer
2
(C + 1)/2
(See Note 23)
144
T38
Enables user definable
messages to be output on
a serial port/printer
2
N (See Note
25)
See Note 24
Character input CHARIN
T39
Read input from serial port 2
(C + 1)/2
(See Note 23)
115
Message store
OR retrieval
GETTEXT
S21
Store message strings
2 OR 1
2
-
14. Output
Functions
Output
OUTPUT
S8
Intermediate output from
rung
2
1
1.5
15 Starnet
Configure Ports
CONFIG
T33
Used to configure
STARNET ports
2
1
See note 29
Send Message
SEND
T34
Transmit outgoing data
2
2
See note 30
Receive
Message
RECEIVE
T35
receive incoming data
2
3
See note 31
Log Statistics
STATS
T36
Report STARNET errors and
statistics
2
1
1300