Enable interrupts – call 9, Input call conversion routines – Rockwell Automation 1771-DB Basic Module User Manual - Series A User Manual

Page 92

Advertising
background image

Operating Functions

Chapter 5

5–55

Important: You must use an Interrupt Control CALL 9 after a PROG
command to re-enable interrupts.

This routine enables system interrupts. It is mandatory after programming
a PROM. The wall clock is accessible and the peripheral port is enabled.

All of the input call conversion routines require the same sequence of
commands. These are:

PUSH – the word position of the processor block-transfer-file to be
converted (1–64)

CALL – the appropriate input conversion

POP – the input argument into a variable

The data format of the output arguments from each of the input conversion
routines is described in more detail in Chapter 7.

5.7.9.1
3-Digit Signed, Fixed Decimal BCD to Internal Floating Point

"XXX –

CALL 10

The input argument is the number (1 to 64) of the word in the
write-block-transfer buffer that is to be converted from 3-digit BCD to
internal format. The output argument is the converted value in internal
floating point format. The sign bit is bit number 16.

5.7.9.2
16-Bit Binary (4-digit hex) to Internal Floating Point – CALL 11

The input argument is the number (1 to 64) of the word in the
write-data-transfer buffer to be converted from 16-bit binary to internal
format. The output argument is the converted value in internal floating
point format. There are no sign or error bits decoded.

5.7.9.3
4-Digit Signed Octal to Internal Floating Point

"XXXX – CALL 12

The input argument is the number (1 to 64) of the word in the processor
block-transfer buffer to be converted from 4-digit signed octal to internal
format. This 12-bit format has a maximum value of

"7777 octal. The

output argument is the converted value in internal floating point format.
The sign bit is bit number 16.

5.7.8
Enable Interrupts – CALL 9

5.7.9
Input Call Conversion
Routines

Advertising