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

The text of a manual · part 12 of 23

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

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

Page 5-13 Message Packet Formats

Table 5.A Continued

Contents of Status DATA for 1771-KA, 1771-KC/KD, 1771-KE/KF, 1771-KG, and 1774-KA Modules

Byte | Meaning

1771-KG Module

Half-duplex protocol Full-duplex protocol

Bit 0:

ool

Bit 1: Physical writes enabled

Physical writes disabled

Bit 2:

Unprotected commands enabled Unprotected commands disabled

Bit 3:

Embedded responses enabled Embedded responses disabled

Bit 4: Even parity

No parity

19,200 bits per second 9600 bits per second 4800 bits per second 2400 bits per second 1200 bits per second 600 bits per second 300 bits per second 110 bits per second

1774-KA Module

Bit 0: 0= Unprotected commands enabled 1= Unprotected commands disabled

Bit 1: Not used

Bit 2: 0 = Physical writes enabled 1= Physical writes disabled

Bits 5 to 7:

NOOhONM$ CO = 0 += 0 = 0 =0 +090 I now tl

Bit 3: 0= Transmission of unprotected commands enabled

1= Transmission of unprotected commands disabled

Data highway port B is connected Data highway port A is connected

Bit 4:

Bit 5:

PLC outputs held in last state PLC outputs turned off

57,600 bits per second 76,800 bits per second 38,400 bits per second 115,200 bits per second

Bits 6 to 7:

ou

Ono =o +c

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

Page 5-14 Message Packet Formats

Table 5.B Contents of Status DATA for 1773-KA Modules

Byte Meaning

1 Operating status of controllers on the loop:

Bit 0 = 1 if controller #1 is active Bit 1 = 1 if controller #2 is active Bit 2 = 1 if controller #3 is active Bit 3 = 1 if controller #4 is active Bit 4 = 1 if controller #5 is active Bit 5 = 1 if controller #6 is active Bit 6 = 1 if controller #7 is active Bit 7 =1 if controller #8 is active

2 Station interface type: Bits 0 to 3: 8 = 1773-KA, data highway port 9= 1773-KA, RS-232-C port Bits 4 to 7: 8 = PLC-4 Microtrol processor 3,4 Data Highway port options: Bit 0: 0 = 57,600 bits per second 1 = 38,400 bits per second Bit 1: Not used Bit 2: = Privileged commands enabled = Privileged commands disabled Bit 3: = Unprotected commands enabled = Unprotected commands disabled Bit 4: = Protected commands enabled = Protected commands disabled Bit 5 to 7: Not used Bit 8 to 15: Octal station number 5,6 RS-232-C port options: Bit 0: O= Even parity 1= No parity Bits 1 to 3: O= 19,200 bits per second

1 = 9600 bits per second

2= 4800 bits per second

3= 2400 bits per second

4= 1200 bits per second

5 = 600 bits per second

6 = 300 bits per second / 7 = 110 bits per second

Bits 4 to 10: Not used

Bit 11: 0 = Protected commands enabled

1 = Protected commands disabled Bit 12: 0 = Embedded responses enabled

1 = Embedded responses disabled Bit 13: 0 = Unprotected commands enabled

1 = Unprotected commands disabled

(continued)

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

Page 5-15 Message Packet Formats

Table 5.B Continued

Contents of Status DATA for 1773-KA Modules

Byte Meaning Bit 14: 0= Privileged commands enabled 1 = Privileged commands disabled Bit 15: 0= Half-duplex protocol 1= Full-duplex protocol 7,8 Starting byte address of diagnostic timers and counters 9 Module series and revision level: Bits 0 to 4: O= Revision A 1 = Revision B etc. Bits 5 to 7: O= Series A 1= Series B etc. 10 Not used 11 Eight 13-byte groups of procesor status data, one group for to each of eight possible controllers on the loop. If a particular 114 controller on the loop is not active or does not respond to the diagnostic status comman4g, its I3 status bytes will all be zeroes. Otherwise, each group of processor status bytes will contain the following information:

Byte 1:

11: 12: 13:

oh

Program I.D.

Processor !.D.

Pointer to start of program

Pointer to end of available memory

Size of I/O

Processor error code

Error word address (low byte)

Error word address (high byte)

Processor mode

Pointer to END statement (low byte) Pointer to END statement (high byte) Pointer to end of used memory (low byte) Pointer to end of used memory (high byte)

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

Page 5-16 Message Packet Formats

Table 5.C Contents of Status DATA for 1775-KA Modules

Byte | Meaning 1 Operating status of PLC-3 processor: Bits 0 to 1: 0 = Program mode 1= Test mode 2= Run mode Bit 2: Not used Bit 3: 0= Normal 1 = Major processor fault Bit 4: 0= Norma! 1 = Shutdown requested Bit 5: 0 = Normal 1 = Shutdown in effect Bits 6 to 7: Not used 2 Type of station interface: Bits 0 to 3; 6= 1775-KA, data highway port 7 = 1775-KA, RS-232-C port Bits 4 to 7: 4= PLC-3 processor Current context (stored in bits 4 to 7) Thumbwheel number

5,6 Mode control word. The logical address of the mode control word is E0.0.0.8.

7,8 Starting byte address of the diagnostic counters and timers. There is a separate block of diagnostic timers and counters for the data highway port and the RS-232-C port. The address given here is the one for the port that received the diagnostic status command.

9 Series and revision number of the 1775-KA module:

Bit 0 to 4: O= RevisionA 1= Revision B etc.

Bits 5 to 7: O= Series A 1= Series B etc.

10 Not used

11 The physical address of the unused word of PLC-3 system to memory. This is the physical address corresponding to

14 the logical address E60.0.0.0.

15 The total number of words in PLC-3 system memory (both to used and unused). This is the physical word address

18 corresponding to the logical address E63.0.0.0.

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

Page 5-17 Message Packet Formats

5.4.1.5 Protected Bit Write

5.4.1.6 Protected Write

This command sets or resets individual bits within limited areas of the PC data table memory. Its access is limited by memory access rungs in the communication zone of the PC’s ladder diagram program.

The data field in this packet consists of 4-byte blocks, each of which contains a 16-bit address field, a set mask, and a reset mask. Use the ADDR field to specify the address of the byte to be modified in the PC data table memory. Put the low byte (least significant bits) of the PC address value into the first byte of the ADDR field. Refer to chapter 6 for more details on how to specify an address value.

Use the SET mask to specify which bits to set to 1 in the addressed PC byte. A 1 in a bit position of the SET mask means to set the corresponding bit in the addressed PC byte to 1; a 0 in a bit position of the SET mask means to leave the corresponding bit in the PC byte unchanged.

Use the RESET mask to specify which bits to reset to 0 in the addressed PC byte. A 1in a bit position of the RESET mask means to reset the corresponding bit in the addressed PC byte to 0; a 0 in a bit position of the reset mask means to leave the corresponding bit in the PC byte unchanged.

Note that the interface module at the receiving PC station executes this command by first making a copy of the addressed PC byte. It then sets or resets the appropriate bits and writes the byte back into PC memory. At the same time, the PC processor can be changing the states of the original bits in memory. Because of this, some data bits may unintentionally be overwritten.

Command Format:

\

VC

ADDR SET RESET Up to 61 masks of this form

\

This command writes words of data into limited areas of the PC data table memory. Its access is limited by memory access rungs in the communication zone of the PC’s ladder diagram program.

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

Page 5-18 Message Packet Formats

Command Format: Y oN v

DATA, Max of 243 bytes

A \ N Y

Reply Format:

9.4.1.7 This command sets the maximum number of ENQs that the SetENQs station interface module will issue per message transmission. Put the number in the DATA field. The default setting for the KE/KF module is 10 ENQs per transmission.

Command Format:

FNC | DATA 06

5.4.1.8 This command sets the maximum number of NAKs that the SetNAKs station interface module will accept per message transmission. Put the number in the DATA field. The default setting for the KE/KF module is 8 NAKs per transmission.

Command Format:

DATA

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

Page 5-19 Message Packet Formats

5.4.1.9 Set Timeout

5.4.1.10 Set Variables

5.4.1.11 Unprotected Bit Write

This command sets the maximum amount of time that the station interface module will wait for an acknowledgment to its message transmission. The setting is expressed as the number of cycles of an internal clock, where 40 cycles equals 1 second. Put the number of desired cycles in the DATA field. The default setting for the KE/KF module is 128 cycles, or about 3 seconds.

Command Format:

DATA.

This command is a combination of the above three commands. It sets the maximum ENQs, NAKs, and timeout all at once. Put the timeout setting in the first byte of the DATA field, the NAKs setting in the second byte, and the ENQs in the third byte. If you do not specify a data value for any one the variables in this command, that variable is automatically reset to zero.

Command Format:

DATA, 3 bytes

This command sets or resets individual bits in any area of PC data table memory.

The data field in this packet consists of 4-byte blocks, each of which contains a 16-bit address field, a set mask, and a reset mask. Use the ADDR field to specify the address of the byte to be modified in the PC data table memory. Put the low byte (least significant bits) of the PC address value into the first byte of the ADDR field. Refer to chapter 6 for more details on how to specify an address value.

Use the SET mask to specify which bits to set to 1 in the addressed PC byte. A 1 in a bit position of the SET mask means to set the corresponding bit in the addressed PC byte to 1; a 0 in a bit position of the SET mask means to leave the corresponding bit in the PC byte unchanged.

Use the RESET mask to specify which bits to reset to 0 in the addressed PC byte. A 1 in a bit position of the RESET mask

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

Page 5-20 Message Packet Formats

§.4.1.12 Unprotected Read

5.4.1.13 Unprotected Write means to reset the corresponding bit in the addressed PC byte to 0; a 0 in a bit position of the RESET mask means to leave the corresponding bit in the PC byte unchanged.

Note that the interface module at the receiving PC station executes this command by first making a copy ofle at the receiving PC station executes this command by first making a copy of the addressed PC byte. It then sets or resets the apppropriate bits and writes the byte back into PC memory. At the same time, the PC processor can be changing the states of the original bits in memory. Because of this, some data bits may unintentionally be overwritten.

Command Format:

SET RESET Up to 61 masks of this form ~ ‘

This command reads words of data from any area of PC data table memory. 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:

SIZE

This command writes words of data into any area of PC data table memory.

Command Format:

% XY + ay

DATA, Max of 242 bytes

AY .t N ¥

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

Page 5-21 Message Packet Formats

5.4.2 PLC Commands

5.4.2.1 Disable Outputs

5.4.2.2 Enable Program

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

Disable outputs Enable program Enable scan Physical read Physical write

The above commands are privileged commands. This means that only a computer can initiate them. Their primary purpose is for uploading and downloding PLC memory.

This command turns off all outputs of the PLC controller. Use this command to disable the PLC’s outputs before doing a physical write operation.

Command Format:

This command returns control of outputs to the PLC ladder diagram program. Use this command to cancel the effect of the disable ouptuts command.

Command Format:

Reply Format:

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

Page 5-22 Message Packet Formats

5.4.2.3 Enable Scan

5.4.2.4 Physical Read

5.4.2.5 Physical Write

This command restarts the PLC processor’s program scanner after a physical write operation has been performed. Note that you must always use the enable scan command to restart the PLC processor after a physical write command.

Command Format:

This command reads bytes of data from the PC data table or program memory. Use this command up to upload the contents of PLC 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

\ YU

\

DATA, Max of 244 bytes

4 \ \ \

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 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:

a YY *+ X

DATA, Max of 243 bytes

% oN my ‘