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

Page 108

Advertising
background image

7-6

CompactLogix Example Ladder Programs

Figure 7.3 Example CompactLogix Single Mode Ladder Logic CH1 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_Valid_Data

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

U

CH1_Start

i

8

CH1_Start

Channel 1

Logic Command

Bit 01

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

9

CH1_Jog

Channel 1

Logic Command

Bit 02

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

10

CH1_Clear_Fault

Channel 1

Logic Command

Bit 03

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

11

CH1_Forward_Cmd

Channel 1

Logic Command

Bit 04

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

12

/

CH1_Forward_Cmd

Channel 1

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_Reference

100

Dest

Local:1:O.Data[2]

100

MOV

Channel 1

Reference Word

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

desired parameter number is the value entered for the Instance number.

14

CH1_Read_Param

EN

DN

ER

Type - CIP Generic

Message Control

CH1_Read_Msg ...

MSG

Advertising