Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 13 of 23

Bulletin 1771 Communication Controller Module (Cat. Nos. 1771-KE, -KF) User's Manual, pages 121 to 130

Pages 121 to 130 of 228

The original document is the PDF (9.6 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Allen-Bradley 1771-KE

Page 121 read from a scan by OCR; it may hold reading errors

Page 5-23 Message Packet Formats

5.4.3 PLC-2 Commands

5.4.3.1 Enter Download Mode

5.4.3.2 Enter Upload Mode

PLC-2 stations can execute all of the commands in the basic command set. They can also execute the following commands, which apply only to PLC-2 Family controllers:

Enter download mode

Enter upload mode

Exit download/upload mode Physical read

Physical write

Set data table size

The above commands are privileged commands. This means that only a computer can initiate them. Their primary use is for uploading and downloading PLC-2 memory.

This command puts the PLC-2 processor into the download mode. Use this command on a PLC-2 station before attempting to send any physical write commands to the station.

Command Format:

When you send an Enter Download/Uplead mode command, the Industrial Terminal Port is disabled until you send an Exit Download/Upload mode command. When the Industrial Terminal Port is disabled, it enters the Mode Select State. In order to leave this state, you will have to manually select a mode at the Industrial Terminal.

If you are using a 1771-KA, series A, revision F module, or a 1771-KG, series A, use the Enter Download Mode command 07, function 04, shown above in section 5.4.3.1, before sending physical read commands.

If you are using a 1771-KA2 module, or a 1771-KG, series B, use the Enter Upload command 07, function 06, shown below, before sending physical read commands.

Page 122 read from a scan by OCR; it may hold reading errors

Page 5-24 Message Packet Formats

5.4.3.2 This command puts the PLC-2 processor into the upload mode. Enter Upload Mode Use this command on a PLC-2 station before attempting to send any physical read commands to the station.

Command Format:

When you send an Enter download/upload mode command, the industrial terminal port is disabled until you send an Exit Download/Upload mode command. When the industrial terminal port is disabled, it enters the Mode Select State. In order to leave this state, you will have to manually select a mode at the industrial terminal.

5.4.3.3 This command takes the PLC-2 processor out of the upload or Exit Download/Upload Mode download mode. Use this command to restart the PLC-2 processor after performing an upload or download operation. If you don’t send this command after a download/upload mode command, you will will have to recycle power at the 1771-KA or 1771-KA2 module to enable industrial terminal communication.

Page 123 read from a scan by OCR; it may hold reading errors

Page 5-25 Message Packet Formats

5.4.3.4 Physical Read

5.4.3.5 Physical Write

Command Format:

Reply Format:

This command reads bytes of data from the PC data table or program memory. Use this command to upload the contents of PLC-2 memory to your computer.

Use the SIZE field to specify the number of bytes to be read. To specify a number of PC words, SIZE should be an even value because PC words are two bytes long.

Command Format:

ADDR | SIZE

\ - DATA, Max of 244 bytes

\ \ \ \

This command writes bytes of data into the PC data table or program memory. Use this command to download the contents of a computer file into PLC-2 memory.

Use the SIZE field to specify the number of bytes to be written. To specify a number of PC words, SIZE should be an even value because PC words are two bytes long.

Command Format:

x XY % N

I ADDR | DATA, Max of 243 bytes

AY . \ .Y¥

Reply Format:

Page 124 read from a scan by OCR; it may hold reading errors

Page 5-26 Message Packet Formats

5.4.3.6 Set Data Table Size

5.4.4 PLC-3 Commands

This command sets the data table size for the PLC-2 processor. 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 PC 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 (chapter 6) 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:

DATA

PLC-3 stations can execute all of the commands in the basic command set. They can also execute the following commands, which apply only to PLC-3 controllers:

Non-privileged Commands e Bit write

File read

File write

Word range read

Word range write

Privileged Commands Download request Physical read Physical write Restart request Shutdown request Upload request

Only a computer can initiate privileged commands. Their primary use is for uploading and downloading PLC-3 memory.

Only a computer or another PLC-3 station can initiate the non-privileged PLC-3 commands listed above. Their primary use is for transferring data between two PLC-3 files. Those files may be located in the same PLC-3 processor or in two different PLC-3’s.

In addition to the message packet fields already described for the basic command set (section 5.3), PLC-3 messages may also contain the following fields:

Page 125 read from a scan by OCR; it may hold reading errors

Page 5-27 Message Packet Formats

. ASCIL SYMBOL, contains the ASCII codes for the characters in a PLC-3 symbolic address. Chapter 6 gives more information on the format of symbolic addresses.

. EXT STS, contains extended status information in a reply message. This field is used only if the STS value is FO hex.

. PACKET OFFSET, contains the word offset between the

DATA field of the current message packet and the DATA field of the first packet in the transaction. This offset value appears only in command messages for file transfers, where the complete transaction might require more than one command or reply message packet. The value of PACKET OFFSET is zero for the first packet in a transaction.

. PLC-3 LOGICAL ADDRESS, contains the logical address of a PLC-3 file or word. Chapter 6 gives more details about the contents of the address field.

. PLC-3 PHYSICAL ADDRESS, contains the physical address of a PLC-3 word. Chapter 6 gives more details about the contents of this address field.

_ TOTAL TRANS, contains the total number of data words transferred by the current transaction. This is the total number of PLC-3 words to be transferred in the DATA fields of all message packets in the current transaction. TOTAL TRANS appears only in command messages for file transfers, where the transaction might take more than one message packet to complete.

. W/F, is the word/file sybmolic address flag. This one-byte flag specifies whether the symbolic address field following it represents a word address or a file address. The value of W/F is zero if the symbol represents a word address and non-zero if the symbol represents a file address.

. WORD OFFSET, contains the word offset between the desired word and the beginning of the addressed file. The offset is zero for the first word of a file. In word-range read and write commands, this field can be combined with a symbolic file address to specify a word address.

Page 126 read from a scan by OCR; it may hold reading errors

Page 5-28

Message Packet Formats

5.4.4.1 Bit Writes

This is a bit write command to modify the bits at the address specified by either a word symbol, a file symbol plus a word offset, or a logical address. This address must point to a word within a file. The function code is 2. Unlike the current unprotected and protected bit writes in the basic command set, this command can be change the bits in a single word only.

Command Format: A. Word symbol address

‘

\

B. File symbol address plus word offset

FNC | 00 ASCII symbol 02 (8 characters max) aceon | 00 W/F SET RESET 00 Mask Mask s

\

|. FNC 00 ASCII symbol | 02 (8 characters max) \ I | 00 W/F WORD SET RESET 01 Mask Mask C. Logical address \ . ‘ AY FNC PLC-3 logical address 02

(2-51 bytes)

\

L.

SET Mask

RESET Mask

Reply Format:

This is the same as the reply packet format for all current unprotected, protected, and privileged bit writes.

A. Format when successful execution

Where the extended status byte is optional.

Page 127 read from a scan by OCR; it may hold reading errors

Page 5-29 Message Packet Formats

5.4.4.2 Download Request

5.4,4.3 File Read

A computer can use this command to inform the 1775-KA module that it wants to do a download. If the 1775-KA module grants the download privilege, the computer may begin issuing physical reads or writes. If a different station already has the the download privilege, the second station is denied the privilege. The function code is 5.

Command Format:

Reply Format:

A. Format when successful execution

Where the extended status byte is optional.

This is a read command whose starting address is either a file symbol or a block address. This starting address must point to a file of words. The function code is 4.

Command Format: A. File symbol address

| enc | PACKET | TOTAL 04 | OFFSET | TRANS | |

» \

‘\ v | 00 ASCII symbol 00 SIZE (8 characters max)

\ XN

B. Logical address

ENC | PACKET | TOTAL | 04 | OFFSET | TRANS |

| PLC-3 logical address | SIZE (2-51 bytes) X\

\

9 S

Page 128 read from a scan by OCR; it may hold reading errors

Page 5-30 Message Packet Formats

5.4.4.4 File Write

Reply Format:

This is the same as the reply packet format for all current unprotected, protected, and privileged reads.

A. Format when successful execution

Where the extended status byte is optional.

This is a write command whose starting address is either a file symbol or a block address. This starting address must point to a file of words. The function code is 3.

Command Packet Format:

A. File symbol address

PACKET] TOTAL | 00 OFFSET | TRANS

Ay a

Xv ¥ | > ASCII symbol 00 | DATA - Max of 228 bytes or 114 words (8 characters max)

y \ \ -

B. Logical address

PACKET] TOTAL OFFSET| TRANS a . Sa ena | (2-51 bytes) the length of the PLC-3 block address (Must be an even number of bytes)

> eo

Reply Format:

This is the same as the reply packet format for all current unprotected, protected, and privileged writes.

A. Format when successful execution

Page 129 read from a scan by OCR; it may hold reading errors

Page 5-31 Message Packet Formats

5.4.4.5 Physical Read

5.4.4.6 Physical Write

B. Format when reporting an error

Where the extended status byte is optional.

This is a read command where the starting address is a PLC-3 physical address. It is used to upload from a PLC-3 toa computer. The destination 1775-KA module will accept this command only after the source station has successfully transmitted a shutdown request. The function code for this command is 9.

Command Format:

FNC PLC-3 SIZE 09 physical address

Reply Format:

This is the same as the reply packet format for all current unprotected, protected, and privileged reads.

A. Format when successful execution

\ DATA - Max of 244 bytes or 122 words

Where the extended status byte is uptional.

This is a write command where the starting address is a PLC-3 physical address. It is used to download to a PLC-3 from a computer. The destination 1775-KA module will accept this command only after the source station has successfully transmitted a shutdown request. The function code for this command is 8.

Command Format:

PLC-3 physical address

| DATA, Max of 238 bytes or 119 words

LN ~ - __1

Page 130 read from a scan by OCR; it may hold reading errors

Page 5-32 Message Packet Formats

5.4.4.7 Restart Request

5.4.4.8 Shutdown Request

Reply Format:

This is the same as the reply packet format for all current unprotected, protected, and privileged writes.

A. Format when successful execution

Where the extended status byte is optional.

This command is used by the computer to terminate an upload or a download. The computer cannot issue this command until after it has successfully completed an upload or download operation with the destination station. This command causes the 1775-KA module to revoke the upoad and download privileges for the source computer station and to initialize a PLC-3 restart. The function code for this command is 10 decimal.

Command Format:

Reply Format:

A. Format when successful execution

Where the extended status byte is optional.

This command is used by the computer to ask the 1775-KA module to initiate either a PLC-3 shutdown (if the computer has download privileges) or a freeze on file allocations (if the computer has upload privileges). The computer cannot issue this command until it has successfully transmitted an upload or download request to the 1775-KA module. This command has a function code of 7.