Rockwell Automation 1747-SDN SLC 500 DeviceNet Scanner Module User Manual User Manual

Page 125

Advertising
background image

Publication 1747-UM655B-EN-P - June 2007

Configuring the M0/M1 Files by Using RSLogix 500 Software 125

To show the state of the M0 or M1 addressed bit, transfer the state to
an internal processor bit. This is illustrated below, where an internal
processor bit is used to indicate the true/false state of a rung.

Transfer Data Between Processor Files and M0 or M1 Files

The processor does not contain an image of the M0 or M1 file so you
must edit and monitor M0 and M1 file data via instructions in your
ladder program. For example, you can copy a block of data from a
processor data file to an M0 or M1 data file or vice versa by using the
COP (copy) instruction in your ladder program.

The COP instructions below copy data from a processor bit file and
integer file to an M0 file.

EQU

EQUAL
Source A N

Source B

B3

1

B3

0

B3

2

M0:3.0

1

B3

1

( )

M0:3.0

1

] [

B3

0

EQU

EQUAL
Source A N

Source B

( )

( )

] [

] [

] [

This rung does not show its true rung state because the EQU instruction is
always shown as true and the M0 instruction is always shown as false.

OTE instruction B3/2 has been added to the rung. This instruction shows the true or
false state of the rung.

COP

COPY FILE
Source
Dest
Length

COP

COPY FILE
Source
Dest
Length

] [

S:1

15

First scan bit. It makes this rung
true only for the first scan after
entering Run mode.

Advertising