Rockwell Automation 2706-F11J_F11JC_F21J_F21JC DL50 INSTALLATION MANUAL User Manual

Page 89

Advertising
background image

Chapter 6

Slave Mode Operation / Examples

6–25

Rung 2:2
Creation of output string for DL50. Message sending is initiated by discrete
input I:001/00 and controlled by the delay timer.
First the variable is converted from an integer to an ASCII string. (AIC)
Next the output string is assembled from the separate parts. (ACN)
Finally the output string is sent out to the DL50 through CH0. (AWT)
| I:001 T4:0 +AIC–––––––––––––––––––––––––+ |
+––] [–––] [––––––––––––––––––––––––––––––––––++INTEGER TO STRING CONVERSION++–+
| 00 DN ||Source C5:0.ACC|| |
| || 25|| |
| ||Destination VARIABLE|| |
| |+––––––––––––––––––––––––––––+| |
| | +ACN––––––––––––––––––––+| |
| +–––––+STRING CONCATENATE ++ |
| | |Source A PRE_TEXT|| |
| | |Source B TEXT|| |
| | |Destination MSG_SEND|| |
| | +–––––––––––––––––––––––+| |
| | +ACN––––––––––––––––––––+| |
| +–––––+STRING CONCATENATE ++ |
| | |Source A MSG_SEND|| |
| | |Source B VARIABLE|| |
| | |Destination MSG_SEND|| |
| | +–––––––––––––––––––––––+| |
| | +ACN––––––––––––––––––––+| |
| +–––––+STRING CONCATENATE ++ |
| | |Source A MSG_SEND|| |
| | |Source B F3_F4_F5|| |
| | |Destination MSG_SEND|| |
| | +–––––––––––––––––––––––+| |
| | +ACN––––––––––––––––––––+| |
| +–––––+STRING CONCATENATE ++ |
| | |Source A MSG_SEND|| |
| | |Source B F6_B123|| |
| | |Destination MSG_SEND|| |
| | +–––––––––––––––––––––––+| |
| | +ACN––––––––––––––––––––+| |
| +–––––+STRING CONCATENATE ++ |
| | |Source A MSG_SEND|| |
| | |Source B CHECKSUM|| |
| | |Destination MSG_SEND|| |
| | +–––––––––––––––––––––––+| |
| |+AWT––––––––––––––––––––+ | |
| ++ASCII WRITE +–(EN)+ |
| |Channel 0| |
| |Source MSG_SEND+–(DN) |
| |Control R6:0| |
| |String length 0+–(ER) |
| |Characters sent 19| |
| +–––––––––––––––––––––––+ |
Rung 2:3
The counter is reset when it is done.
| C5:0 C5:0 |
+––] [–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––(RES)–+
| DN |
Rung 2:4
| |
+––––––––––––––––––––––––––––––––[END OF FILE]–––––––––––––––––––––––––––––––––+
| |

Advertising