beautypg.com

M0 file - rio device reset control, Example of device inhibit control -18, M0 file - rio device reset control -18 – Rockwell Automation 1747-BSN Backup Scanner Module User Manual

Page 80: Example of device inhibit control

background image

Publication 1747-UM010B-EN-P - September 2003

5-18 Configuration and Programming

Example of Device Inhibit Control

The 1747-BSN Scanner inhibits (sets to 1) the bits in M0:e.8 through
M0:e.11 (by default) wherever there are no configured devices
present. The illustration below compares the configured devices
(G file word 2) to the groups that the scanner automatically inhibits.

M0 File - RIO Device Reset
Control

M0 Words 16 through 19 – you use these words to command a reset
(0) of RIO device outputs when the SLC processor is in Run or Test
mode. This allows you to selectively reset logical device outputs
based on a previous condition(s) that you defined. Bits 0 to 3
correspond to the logical I/O group locations within logical racks 0, 1,
2, and 3.

To command an RIO device to a reset (0) condition (from Run or Test
mode), set the bit corresponding to the starting logical address of the
device to 1. Setting bits that do not correspond to a device starting
address does not force a reset. To remove the reset condition, reset
the bit (corresponding to the device logical starting address) to 0.
Refer to the mode table below.

Default: The SLC processor resets all bits in this field to 0 when it
enters Run or Test mode.

0

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

0

1

1

0

x

x

x

x

x

x

x

x

x

x

x

x

0

0

0

0

x

x

x

x

x

x

x

x

x

x

x

x

1

0

0

1

x

x

x

x

x

x

x

x

x

x

x

x

1

0

0

0

x

x

x

x

x

x

x

x

x

x

x

x

0

2

4

6

0

2

4

6

0

2

4

6

0

2

4

6

1

0

0

1

1

1

1

1

0

1

1

0

0

1

1

1

MO (Control) File

e = slot number of the SLC rack containing the scanner x = not used/defined

Logical Rack 0 Device Inhibit Word 8
Logical Rack 1Device Inhibit Word 9
Logical Rack 2 Device Inhibit Word 10
Logical Rack 3 Device Inhibit Word 11

M0 File
M0:e.8
M0:e.9
M0:e.10
M0:e.11

Bit Number (decimal)

G File

Device Address, Word 1

RIO Logical Rack 3

Starting Group

RIO Logical Rack 2

Starting Group

RIO Logical Rack 1

Starting Group

RIO Logical Rack 0

Starting Group

0

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

0

0

0

0

x

x

x

x

x

x

x

x

x

x

x

x

0

0

0

0

x

x

x

x

x

x

x

x

x

x

x

x

0

0

0

0

x

x

x

x

x

x

x

x

x

x

x

x

0

0

0

0

x

x

x

x

x

x

x

x

x

x

x

x

0

2

4

6

MO (Control) File Words 16 through 19

e = slot number of the SLC rack containing the scanner
x = bit not used/ defined

Logical Rack 0 Device Inhibit Word 16
Logical Rack 1Device Inhibit Word 17
Logical Rack 2 Device Inhibit Word 18
Logical Rack 3 Device Inhibit Word 19

M0 File
M0:e.16
M0:e.17
M0:e.18
M0:e.19

Not Defined

Starting Group