18 compactlogix example ladder programs – Rockwell Automation 1769-SM2 Compact I/O DSI/Modbus Communication Module User Manual

Page 120

Advertising
background image

7-18

CompactLogix Example Ladder Programs

Figure 7.6 Example CompactLogix Multi-Drive Ladder Logic CH1 Drive 0 Subroutine (Continued)

This rung unlatches the contact that turns on the Start command when the drive is not communicating with the 1769-SM2.

This prevents the drive from immediately starting when communications are restored. If an immediate start is desired for an

application, this rung could be deleted.

7

/

CH1_Drv0_Valid_Data

<Local:1:I.Data[0].0>

U

CH1_Drv0_Start

i

8

CH1_Drv0_Start

CH1 Drv0

Logic Command

Bit 01

Local:1:O.Data[1].1

9

CH1_Drv0_Jog

CH1 Drv0

Logic Command

Bit 02

Local:1:O.Data[1].2

10

CH1_Drv0_Clear_Fault

CH1 Drv0

Logic Command

Bit 03

Local:1:O.Data[1].3

11

CH1_Drv0_Forward_Cmd

CH1 Drv0

Logic Command

Bit 04

Local:1:O.Data[1].4

12

/

CH1_Drv0_Forward_Cmd

CH1 Drv0

Logic Command

Bit 05

Local:1:O.Data[1].5

This rung displays the Reference being sent to the drive. An integer represents the xxx.x Hz format (decimal is implied) used

by the drive, so a displayed value of "300" equates to 30.0 Hz.

13

Move

Source CH1_Drv0_Reference

100

Dest

Local:1:O.Data[2]

100

MOV

CH1 Drv0

Reference Word

These rungs send an explicit message to the 1769-SM2 to read/write Parameter 78 [Jog Frequency].

14

CH1_Drv0_Read_Param

EN

DN

ER

Type - CIP Generic

Message Control

CH1_Drv0_Read_Msg ...

MSG

Advertising