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

The text of a manual · part 14 of 23

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

Pages 131 to 140 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 131 read from a scan by OCR; it may hold reading errors

Page 5-33 Message Packet Formats

5.4.4.9 Upload Request

Command Format:

Reply Format:

A. Format when successful execution

Where the extended status byte is optional.

This command is used by the computer to inform the 1775-KA module that it wants to do an upload. If the module grants the upload privilege, the computer may begin issuing physical reads. If a different station already has the upload privilege, the second station is denied the privilege. The function code is 6.

Command Format:

Reply Format:

A. Format when successful execution

Where the extended status byte is optional.

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

Page 5-34

Message Packet Formats

5.4.4.10 Word Range Read

This is a read command whose starting address is either a word symbol, a file symbol plus a word offset, or a block address. This starting address must point to a word in a file. The function code is 1. A special case of this command is the single-word read, where the number of bytes to read is only two bytes (one word).

Command Format:

A. Word symbol address

S) FNC | PACKET | TOTAL | 00 01 OFFSET | TRANS ~ + ; ASCII symbol 00 | W/F | SIZE (8 characters max) 00 4 4 \ x B. File symbol address plus word offset PACKET | TOTAL | 00 OFFSET | TRANS 3 \ ~\ X lL ASCII symbol 00 W/F | WORD SIZE (8 characters max) 01 OFFSET C. Logical address lL FNC | PACKET | TOTAL 4 01 OFFSET | TRANS

St

AN XN | PLC-3 logical address

(2-51 bytes)

SIZE

‘N

Reply Format:

XN

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

A. Format when successful execution

\ ma.

\

\

| DATA - Max of 244 bytes or 122 words reporting an error

Where the extended status byte is optional.

Xr \ N

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

Page 5-35 Message Packet Formats

5.4.4.14 Word Range Write

This is a write command whose starting address is either a word symbol, a file symbol plus a word offset, or a logical address. This starting address must point to a word in a file. The function code is 0 (zero). A special case of this command is the single word write, where the data field is only one word long.

Command Format: A. Word symbol address s | FNC | PACKET} TOTAL | 00 00 | OFFSET | TRANS, - - -, x, ASCII symbol 00 | W/F DATA - Max of 228 bytes (8 characters max) 00 or 114 words XY \ \

B. File symbol address plus word offset

PACKET | TOTAL 00

OFFSET | TRANS \, , ¥ ASCII symbol 00 W/F |} WORD | DATA, Max of 226 bytes (8 characters max) 01 OFFSET or 113 words x \ \ * C. Logical address

| CMD FNG | PACKET | TOTAL - 00 OFFSET | TRANS

,, . \ LI PLC-3 logical address DATA, Max length is 239 bytes minus (2-51 bytes) the length of the Plc-3 logical address (must be an even number of bytes)

\ N x X\ \ ‘ Reply Format:

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

A. Format when successful execution.

Where the extended status byte is optional.

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

Page 5-36 Message Packet Formats

5.4.5 PLC-4 Commands

5.4.5.1 Allocate

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

Allocate processor De-allocate processor Initialize processor Physical read

Physical write

Physical write with mask Set to program mode

Set to run mode

Set to single scan test mode Set to test mode

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

Note that PLC-4 stations cannot initiate any type of command message.

In addition to the message packet fields already described for the basic command set (section 5.3), PLC-4 messages may also contain a byte called PLC-4 SEL. This field specifies which controller in the PLC-4 Microtrol loop is the ultimate destination of the command message. The allowed values for this field are:

PLC-4 SEL value Meaning

Selects controller #1 Selects controller #2 Selects controller #3 Selects controller #4 Selects controller #5 Selects controller #6 Selects controller #7 Selects controller #8

NAMHMWoPwWwNr ©

This command causes the 1773-KA module to allocate PLC-4 access privileges to the computer station that originated the allocate commands. Once the computer has this access privilege, it can send any of the other privileged commands to the selected PLC-4 controller. No other computer can gain access privileges to the same PLC-4 controller until the privileges of the first computer have been de-allocated.

If the 1773-KA module loses power, all access privileges are de-allocated.

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

Page 5-37 Message Packet Formats

5.4.5.2 De-allocate

5.4.5.3 Initialize Processor

Command Format:

FNC | PLC-4 O5 1 sel

Reply Format:

A. Format when successful execution

B. Format when reporting an error

Where the extended status byte is optional.

This command de-allocates access privileges to the selected PLC-4 controller.

Command Format:

FNC] PLC-4 06 sel

Reply Format:

A. Format when successful execution se STS

Where the extended status byte is optional.

This command initializes, or clears, memory in the selected PLC-4 controller. Use this command to clear the data table memory of the controller before downloading to it. The controller must be in program load mode and must not be executing any other privileged command.

Command Format:

PLC-4 sel

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

Page 5-38

Message Packet Formats

5.4.5.4 Physical Read

5.4.5.5 Physical Write

Reply Format:

A. Format when successful execution

Where the extended status byte is optional.

This command reads the specified number of bytes from the memory of the selected PLC-4 controller. Use this command to upload the contents of PLC-4 memory to your computer. The SIZE field contains the number of bytes to be read, and it may have a value from 1 to 242 decimal.

Command Format:

_| FNC | PLC-4 | ADDR SIZE 4 0D sel

Reply Format: A. Format when successful execution 1 aN ‘ pst |srRc|cmp| STS | TNS DATA, 1-242 bytes 4E |

\ \ ‘\ XN

B. Format when reporting an error

Where the extended status byte is optional.

This command writes bytes of data into the memory of the selected PLC-4 controller. Use this command to download data from your computer to the controller. The PLC-4 ADDRESS field contains the physical byte address where the data will begin being written into PLC-4 memory. Refer to chapter 6 for a description of this physical address.

Command Format:

S | FNC| PLC-4 | PLCO-4 | OE sel address|

=e DATA, 1-239 bytes

HW

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

Page 5-39 Message Packet Formats

5.4.5.6 Physical Write With Mask

Reply Format:

A. Format when successful execution

B. Format when reporting an error

Where the extended status byte is optional.

This command sets or resets bits in a memory word of the selected controller. The ADDRESS field contains the physical PLC-4 address of the memory word to be modified. Refer to chapter 6 for a description of physical addresses.

The BIT MASK field specifies-which bits in the PLC-4 word are to be modified, and the DATA field specifies whether those bits are to be set or reset. For each bit that is 1 in the BIT MASK, the corresponding bit is the addresses PLC-4 word is set to the same value (1 or 0) as the corresponding bit in the DATA field. For each bit that is 0 in the BIT MASK, the corresponding bit of the addresses PLC-4 word is left unchanged.

Note that you can modify up to 40 PLC-4 words in this way by specifying a series of ADDRESS, DATA, and BIT MASK fields.

Command Format:

FNC | PLC-4 OF sel

| ADDR DATA BIT MASK repeated up to 40 times

Reply Format:

A. Format when successful execution

B. Format when reporting an error

Where the extended status byte is optional.

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

Page 5-40 Message Packet Formats

5.4.5.7. This command sets the selected controller to the Program Load Set To Program Mode = mode.

Command Format:

PLC-4 sel reporting an error

Where the extended status byte is optional.

5.4.5.8 This command sets the selected controller to Run mode. Set To Run Mode

Command Format:

FNC] PLC-4 02 sel

Reply Format:

A. Format when successful execution

Where the extended status byte is optional.

5.4.5.9 This command sets the selected controller to Single Step Test Set To Single Scan Test Mode mode.

Command Format:

FNC | PLC-4 04 sel

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

Page 5-41 Message Packet Formats

Reply Format:

A. Format when successful execution

EXT STS

Where the extended status byte is optional.

5.4.5.10 This command sets the selected controller to Test mode.

Set To Test Mode = Command Format:

PLC-4 sel

Reply Format:

A. Format when successful execution reporting an error

Where the extended status byte is optional.

Page 140

This page is a scan with no text; see it in the PDF.