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

The text of a manual · part 46 of 70

SLC 500 Instruction Set Reference Manual, pages 451 to 460

Pages 451 to 460 of 694

The original document is the PDF (7.2 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 1747-L514

Page 451

Messaging Examples

15-5

The following is the ladder logic necessary for the SLC 5/04 processor.

The following is the MSG setup for the SLC 5/04 processor.

The type of MSG instruction is Local. The local node address is the node number of the destination DH-485 address. For the step by step procedure for this example, refer to Knowledgebase Document Number: G63635969.

Publication 1747-RM001G-EN-P - November 2008

Page 452

15-6

Messaging Examples

Passthru Example: DH-485 to DF1 The following illustrates a SLC 5/03 processor as a passthru processor that receives remote messages targeting the SLC 5/04 on the DF1 network. The SLC 5/03 processor will forward remote messages received on the DH-485 network (channel 1) to the DF1 network (channel 0) as local messages. For this example, the SLC 5/03’s configuration bits are set to the following values. • DF1 Pass-Thru Enable bit (S2:34/5) is set • DH-485 Pass-Thru Disable bit (S2:34/0) is set

The DF1 Pass-Thru Enable Bit (S2:34/5) enables messages to be passed to and from the channel 0 DF1 network from and to the channel 1 DH-485 network. This bit must be set to enable DH-485-to-DF1 passthru.

Publication 1747-RM001G-EN-P - November 2008

Page 453

Messaging Examples

TIP

15-7

No programming logic is necessary in the passthru processor.

The following is the ladder logic necessary for the SLC 5/03 processor (node 2).

The following is the MSG Setup for the SLC 5/03 processor (node 2).

Publication 1747-RM001G-EN-P - November 2008

Page 454

15-8

Messaging Examples

The type of MSG instruction is Remote. Local Bridge Address is the node number of the passthru DH-485 processor. Remote Bridge Address is not required. Remote Station Address is the node number of the target processor. A DF1 Full-duplex target device does not require a Remote Station Address. Remote Bridge Link ID is the Link ID number of the DF1 destination network. For the step by step procedure for this example, refer to Knowledgebase Document Number: G63059559.

Publication 1747-RM001G-EN-P - November 2008

Page 455

Messaging Examples

15-9

Passthru Example: DH-485 to DH-485 The following illustrates a SLC 5/03 processor as a passthru processor when both channel’s networks are configured for DH-485. The SLC 5/03 processor will forward remote messages received on the DH-485 network (channel 1) to the DH-485 network (channel 0) as remote messages. For this example, the SLC 5/03’s configuration bits are set to the following values. • DF1 Pass-Thru Enable bit (S2:34/5) is clear • DH-485 Pass-Thru Disable bit (S2:34/0) is clear

The DH-485 Pass-Thru Disabled Bit (S2:34/0) enables messages to be passed to and from the channel 1 DH-485 network from and to the channel 1 DH-485 network. This bit must be cleared to enable DH-485-to-DH-485 passthru.

Publication 1747-RM001G-EN-P - November 2008

Page 456

15-10

Messaging Examples

TIP

No programming logic is necessary in the passthru processor.

The following is the ladder logic necessary for the SLC 5/03 processor (node 2).

The following is the MSG Setup for the SLC 5/03 processor (node 2).

The type of MSG instruction is Remote.

Publication 1747-RM001G-EN-P - November 2008

Page 457

Messaging Examples

15-11

Local Bridge Address is the node number of the passthru DH-485 processor. Remote Bridge Address is not required if the target device is remote capable. Remote Station Address is the node number of the target processor. Remote Bridge Link ID is the Link ID number of the destination network. The SLC 5/04 processor (node 15) is also capable of messaging to the SLC 5/03 (node 2). The following MSG setup information would be required in the SLC 5/04 MSG instruction.

For the step by step procedure for this example, refer to Knowledgebase Document Number: G62931042.

Publication 1747-RM001G-EN-P - November 2008

Page 458

15-12

Messaging Examples

SLC 5/04 Passthru Examples

Passthru Example: DF1 to DH+ The following illustrates a SLC5/03 sending a local message via DF1 (CH0) to a SLC5/04 processor. The SLC5/04 processor that receives the initial message will send the message out DH+ to the SLC5/04 processor whose address matches the Local Bridge Address on the DH+ network as long as DF1 Passthru is enabled.

1747-CP3 cable is used to connect the SLC5/03 CH0 port to the SLC5/04 CH0 port. Status File Bit (S:34/5) must be set in the passthru processor in order to enable the DF1-to-DH+ Passthru.

TIP

Publication 1747-RM001G-EN-P - November 2008

No programming logic is necessary in the passthru processor.

Page 459

Messaging Examples

15-13

The following is the ladder logic necessary for the SLC5/03 processor.

MSG Instruction The following rung triggers the MSG instruction with a true-to-false transition upon entering into the run mode. Each time the MSG instruction either reaches Error or Done, rung 2:1 unlatches the enable bit, giving the instruction a false-to-true transition the next scan. The MSG instruction sends its command for each false-to-true transition of its rung, provided it is not in the process of sending a message.

MSG Read/Write Message Type Peer-To-Peer Read/Write Read Target Device 500CPU Local/Remote Local Control Block N7:100 Control Block Length 14 Setup Screen

0000

MSG_ERROR_BIT N7:100 0001 12

EN DN ER

MSG_ENABLE_BIT N7:100 U 15

MSG_DONE_BIT N7:100 13 END

0002

The following is the MSG Setup for the SLC5/03 processor.

Local Bridge Address is the node number of the destination DH+ address. The type of MSG instruction is Local.

Publication 1747-RM001G-EN-P - November 2008

Page 460

15-14

Messaging Examples

The following is the Channel Configuration MSG Setup for the SLC5/03 processor.

Channel 0 Mode is set for System.

Chan. 0 - System driver is set for DF1 Full Duplex. For the step by step procedure for this example, refer to Knowledgebase Document Number: G20023.

Publication 1747-RM001G-EN-P - November 2008