
Data Highway Message Set
Chapter 8
825
Set Data Table Size
This command sets the data table size for the PLC-2 processor. Before
you send this command, you must send an enter download mode
command (“Enter Download Mode”). Use this command immediately
before performing any physical writes on the PLC-2 processor.
For the DATA field in this command, enter the number of bytes of
memory that you want to allocate to the PLC-2 data table. Since
programmable controller words are two bytes long, the DATA value is
double the number of words in the PLC-2 data table. The DATA value is
also equivalent to the physical address of the start of the processor’s
program memory. To determine allowable data table sizes, refer to the
programming manual for the appropriate PLC-2 processor.
Command Format:
Reply Format:
TNS
2 Bytes
CMD
06
USER
NODE
LINK
STS
00
FNC
08
DATA
TNS
2 Bytes
CMD
46
USER
NODE
LINK
STS
00
Unless otherwise stated, values shown are in hexadecimal, and each block
shown represents one byte.
A command application for communication with a PLC-2 station is to
upload and download the contents of the PLC-2 memory. To upload or
download a PLC-2 memory, you must follow the procedures listed here.
Download
Since a download replaces the program, and this replacement may take
several seconds, the PLC-2 processor must be stopped during the
download so that it does not try to execute a program that is changing.
Because the data table may change during a download, the 1779-KP2
interface must prevent other stations from accessing what may be a partial
data table. The interface must also prevent a programming terminal from
accessing the program during a download. The interface will block other
PLC2 Upload/Download
Procedures