Call 101: upload user (e) eprom code to host, Call 102 – Rockwell Automation 1771-DB BASIC MODULE User Manual

Page 293

Advertising
background image

Chapter
Call Routines 69–127

13

13 -35

Use this call to store a file in user EEPROM through the program port of
the BASIC module. The file must be in Intel Hex format. No checks are
made on the addresses you are programming. An error message is
generated to the program port if the EEPROM programming sequence
fails. This call allows you to program assembly language programs in the
BASIC module. The file (in Intel HEx Format) defines the address space in
user EEPROM you can use for storage. This address space is controlled by
“ORG” directives of the assembly language source. Further, Intel Hex
Format defines an “END OF FILE” so the module knows when to stop.

Input and Output Arguments

This routine has no input or output arguments.

Syntax

CALL 100

Example

>CALL 100

Use this call to convert data within the address range to Intel Hex format,
and print the information to the program port. An error message prints if
the addresses are not consistent.

Input and Output Arguments

This routine has two input arguments and no output arguments. The first
input is the starting address. The second input is the ending address.

Syntax

PUSH

starting address

PUSH

ending address

CALL 101

Example

>10 PUSH X

>20 PUSH Y

>30 CALL 101

Undefined. If you execute an undefined call, you receive the error
message, “

ERROR–UNSUPPORTED CALL

.”

CALL 100: Download and
Program Assembly
Language Code to EEPROM

CALL 101: Upload User
(E)EPROM Code to Host

CALL 102

Advertising