The text of a manual · part 9 of 21
Remote I/O Scanner 1747-SN User Manual: Scanner Configuration and Programming, pages 63 to 71
Pages 63 to 71 of 171, from Remote I/O Scanner 1747-SN User Manual
The original document is the PDF (1.1 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Allen-Bradley 1747-SN
Page 63
Scanner Configuration and Programming
4-19 address will not force a reset. To remove the reset condition, reset the bit (corresponding to the device logical starting address) to 0. See the mode table on page 4-22. Default: The SLC processor resets all bits in this field to 0 when it enters Run or Test mode.
M0 (Control) File Words 16 through 19 Bit Number (decimal)
15
14
13
12
11
Not 10
Defined 9 8
Logical Rack 0 Device Reset Word 16 x x x x x x x
Logical Rack 1 Device Reset Word 17 x x x x x x
Logical Rack 2 Device Reset Word 18 x x x x x
Logical Rack 3 Device Reset Word 19 x x x x x
6
Starting Group 4 2
0
7
6
5
4
3
2
1
0 x x x x x
0
0
0
0 x x x x x x
0
0
0
0 x x x x x x x
0
0
0
0 x x x x x x x
0
0
0
0
M0 File M0:e.16 M0:e.17 M0:e.18 M0:e.19 e = slot number of the SLC rack containing the scanner x = bit not used/defined
Example of Device Reset Control The application has commanded the device starting at Logical Rack 0, Group 0 (M0:e.16/0) to a reset condition (bit set to 1). The default setting for all device reset bits is 0.
G File Device Address, Word 1
RIO Logical Rack 3 Starting Group 6 4 2 0
RIO Logical Rack 2 Starting Group 6 4 2 0
RIO Logical Rack 1 Starting Group 6 4 2 0
0
0
1
0
0
0
1
0
0
0
0
1
RIO Logical Rack 0 Starting Group 6 4 2 0 1
0
0
1
M0 (Control) File Bit Number (decimal)
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Logical Rack 0 Device Reset Word 16 x x x x x x x x x x x x
0
0
0
1
M0:e.16
Logical Rack 1 Device Reset Word 17 x x x x x x x x x x x x
0
0
0
0
M0:e.17
Logical Rack 2 Device Reset Word 18 x x x x x x x x x x x x
0
0
0
0
M0:e.18
Logical Rack 3 Device Reset Word 19 x x x x x x x x x x x x
0
0
0
0
M0:e.19
M0 File e = slot number of the SLC rack containing the scanner x = bit not used/defined
M0 File - Remote Output Reset Control M0 Words 24 through 27 - you use these words to command a logical device to reset all of its outputs when the SLC processor leaves the Run mode and enters the Test, Program, or Fault mode (regardless of the device’s Hold Last State setting). Resetting the bit (corresponding to the starting address of a device) to 0 allows the Hold Last State switch on the logical device to determine output operation when the SLC processor leaves the Run mode.
Publication 1747-UM013B-EN-P - January 2005
Page 64
4-20
Scanner Configuration and Programming
Setting the bit to 1 will command all outputs off (regardless of the device’s Hold Last State setting). Only the device’s logical starting address bit matters. Setting other bits has no effect. Bits 0 to 3 correspond to I/O group locations within logical racks 0, 1, 2, and 3. Default: When the processor enters Run or Test mode, the scanner sets the starting address bit of each device configured in the G file to 1.
The use of the device’s Hold Last State switch can result in its outputs remaining energized when not under control of the SLC processor. We recommend the use of this function only by experienced SLC programmers.
ATTENTION
M0 (Control) File W ords 24 through 27 Not
Defined
6
Starting Group 4 2
0
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Logical Rack 0 Remote Output Reset Word 24 x x x x x x x x x x x x
1
0
0
1
M0:e.24
Logical Rack 1 Remote Output Reset Word 25 x x x x x x x x x x x x
0
0
0
1
M0:e.25
Logical Rack 2 Remote Output Reset Word 26 x x x x x x x x x x x x
0
0
1
0
M0:e.26
Logical Rack 3 Remote Output Reset Word 27 x x x x x x x x x x x x
0
0
1
0
M0:e.27
Bit Number (decimal)
M0 File e = slot number of the SLC rack containing the scanner x = not used/defined
Example of Remote Output Reset Control By default the scanner sets the bits in M0:e.24 through M0:e.27 to 1 wherever there are configured devices present. This commands all devices’ outputs to reset regardless of their Hold Last State switch. The application program can remove commanded reset of devices by resetting bits to 0.
G File 6 Device Address, Word 1
RIO Rack 3 Starting Group 4 2
0
6
RIO Rack 2 Starting Group 4 2
0
6
RIO Rack 1 Starting Group 4 2
0
6
RIO Rack 0 Starting Group 4 2
0
0
0
1
0
0
0
1
0
0
0
0
1
1
0
0
1
M0 (Control) File 15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Logical Rack 0 Remote Output Reset Word 24 x x x x x x x x x x x x
1
0
0
1
M0:e.24
Logical Rack 1 Remote Output Reset Word 25 x x x x x x x x x x x x
0
0
0
1
M0:e.25
Logical Rack 2 Remote Output Reset Word 26 x x x x x x x x x x x x
0
0
1
0
M0:e.26
Logical Rack 3 Remote Output Reset Word 27 x x x x x x x x x x x x
0
0
1
0
M0:e.27
Bit Number (decimal)
M0 File e = slot number of the SLC rack containing the scanner x = not used/defined
Publication 1747-UM013B-EN-P - January 2005
Page 65
Scanner Configuration and Programming
Device Reset and Remote Output Reset Considerations
4-21
The 1747-SN Scanner Device Reset words (M0:e.16 to M0:e.19) and the Remote Output Reset words (M0:e.24 to M0:e.27) operate in conjunction with each RIO device to determine the state of that RIO device’s outputs. The output control information that the scanner sends to the RIO device depends on how you configure these bits. The RIO device acts on the output control information in accordance with its functionality and configuration. To fully understand how a specific device responds to the Device Reset and Remote Output Reset words, you must determine the operation of the RIO device. To determine RIO device output operation, refer to that device’s user manual.
ATTENTION
When using the Device Reset and Remote Output Reset words, you must completely understand and fully test all device output operations before beginning normal system operation.
To properly use the Device Reset and Remote Output Reset words, you must consider the output control information sent to the devices during two SLC processor operating conditions: • The SLC processor is in any given mode (Run, Program, Test, or Fault). • The SLC processor is leaving any mode and entering another. If you do not modify the Device Reset and Remote Output Reset words, the device outputs reflect the scanner output image whenever the SLC processor is in Run mode. If the SLC processor is in Program, Test, or Fault mode, it instructs the device to reset its outputs. If you modify the default settings, the Device Reset and Remote Output Reset words change. The table on the following page contains examples of what changes occur. We base the information in the table on the assumption that the scanner’s slot is always enabled and the RIO link device is communicating with the scanner. To determine how the Device Reset and Remote Output Reset words operate, locate the box where the row and column are headed by the modes in question. The shaded boxes represent the Device Reset and Remote Output Reset word operation while in that mode. Example 1 - When powering up into Run mode, the scanner, by default, resets the appropriate bit in the Device Reset word to 0. The appropriate bit in the Remote Output Reset word is set to 1. As a result, the RIO link device outputs reflect the scanner’s output image.
Publication 1747-UM013B-EN-P - January 2005
Page 66
4-22
Scanner Configuration and Programming
Example 2 - Once the SLC processor is in Run mode, the bits in the Remote Output Reset word have no effect on the RIO link device’s outputs. Setting the appropriate bits in the Device Reset Word to 1 instructs the RIO link device to reset its outputs. Example 3 - When going from Run to Program mode, if both of the appropriate bits in the Device Reset and Remote Output Reset words are reset to 0 before leaving Run mode, the RIO link device is instructed to decide whether to hold its last output state or to reset its outputs.
To This Module
From This Module
Run
Test
Program
Power up
DR = 0 ROR = 1(2) Default values are set automatically. Outputs reflect those of the scanner output image.
Run
ROR = X DR = 0 Outputs are unchanged. DR = 1 Outputs are turned off.
DR = 0 In this instance, the last ROR = 0 state switch setting is valid.
DR = 0 In this instance, the last ROR = state switch setting is valid.
DR = X ROR = 1 These two combinations will reset device outputs. DR = 1 ROR = X
DR = X ROR = 1 These two combinations will reset device outputs. DR = 1 ROR = X
DR = 0 ROR = 1 Default values are set automatically.
DR = 0 In this instance, the last ROR = 0 state switch setting is valid.
Outputs remain unchanged.
Test
(1)
Outputs reflect those of the scanner output image.
DR = X(3) ROR = X
Once these outputs are reset, they remain reset regardless of the DR and ROR settings. DR = X ROR = 1 These two combinations will reset device outputs. DR = 1 ROR = X
Program
DR = 0 ROR = 1 Default values are set automatically. Outputs reflect those of the scanner output image.
(1) DR = Device Reset (2) ROR = Remote Output Reset (3) X = Setting does not matter
Publication 1747-UM013B-EN-P - January 2005
DR = 0 ROR = 1 These default values are set automatically. Outputs are reset, unless ROR is changed to 0 on the first scan.
DR = X ROR = X
Page 67
Scanner Configuration and Programming
M1 Status File Description
4-23
M1 file words 0 through 47 contain the status of all devices on the scanner’s RIO link. M1 is a read only file; do not write to this file. Words 0 to 47 of the M1 file provide the following information: • Word 0 (M1:e.0) - general communication status (overall device fault and communications attempted) • Word 2 (M1:e.2) - RIO baud rate status • Word 3 (M1:e.3) - complementary device starting address status • Word 4 (M1:e.4) - complementary logical image size status • Word 5 (M1:e.5) - complementary active device status • Word 8 (M1:e.8) - primary/normal device starting address status • Word 9 (M1:e.9) - primary/normal logical image size status • Word 10 (M1:e.10) - active device status • Words 12-15 (M1:e.12 -15) - device fault status • Words 16-31 (M1:e.16-31) - primary/normal device retry counters • Words 32-47 (M1:e.32-47) - complementary device retry counters
General Communication Status - Enable Device Fault Bit Word 0, bit 0 - is the Enabled Device Fault status bit. When any enabled device is faulted, this bit is set to 1. A fault may be caused by a communication problem with a remote device.
M1 (Status) File Word 0 Bit Number (decimal) General Communication Status Word, Word 0
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
M1 File x x x x x x x x x x x x x x
1
1
M1:e.0
Enabled Device Fault Bit
General Communication Status - Communication Attempted Bit Word 0, bit 1 - is the Communications Attempted status bit. When RIO communication has been attempted with all configured devices, this bit is set to 1. There are no further transitions of this bit until a processor change of state occurs (i.e., Program mode to Run mode or Test mode, or Test mode to Run mode). Until this bit is set, all devices in M1 file word 10 (active device status) appear to be inactive. This bit can be used to condition the Enabled Publication 1747-UM013B-EN-P - January 2005
Page 68
4-24
Scanner Configuration and Programming
Device Fault bit. If the Communications Attempted bit is 1, the Enabled Device Fault bit is valid.
M1 (Status) File Word 0 Bit Number (decimal)
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
M1 File x x x x x x x x x x x x x x
1
1
M1:e.0
General Communication Status Word, Word 0
Communications Attempted Status Bit
Enable Device Fault Bit
RIO Baud Rate Status Word 2, bits 0 to 1 - displays the RIO communication/baud rate you have set the scanner to via its DIP switch. Writing to word 2 does not change the scanner baud rate.
M1 (Status) File - Word 2 Bit Number (decimal)
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
M1 File
RIO Baud Rate, Word 2 x x x x x x x x x x x x x x
0
1
M1:e.2
Baud Rate
As illustrated by the table below, bit 0 = SW1 and bit 1 = SW2.
Bit 1 - 0
Baud Rate
SW 1 - 2
11
57.6K Baud
11
01
115.2K Baud
10
10
230.4K Baud
01
00
230.4K Baud
00
Logical Device Starting Address Status Word 8 - provides status/feedback of the logical device starting addresses you configured in word 1 of the G file (primary/normal logical devices). Writing to M1 file word 8 will not alter the contents of the G file.
Publication 1747-UM013B-EN-P - January 2005
Page 69
Scanner Configuration and Programming
4-25
M1 (Status) File - W ord 8 Bit Number (decimal)
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Primary Logical Device Address, Word 8
0
0
1
0
0
0
1
0
0
0
0
1
1
0
0
1
M1 File M1:e.8
G File - W ord 1 Starting Group
Primary Logical Device Address, Word 1
Starting Group
Starting Group
Starting Group
6
4
2
0
6
4
2
0
6
4
2
0
6
4
2
0
0
0
1
0
0
0
1
0
0
0
0
1
1
0
0
1
RIO Logical Rack 3 Starting Group 2
RIO Logical Rack 2 Starting Group 2
RIO Logical Rack 1 Starting Group 0
RIO Logical Rack 0 Starting Group 6
RIO Logical Rack 0 Starting Group 0
Word 3 - provides status/feedback of the logical device starting addresses you configured in word 3 of the G file (complementary devices). Writing to M1 file word 3 will not alter the contents of the G file.
M1 (Status) File - W ord 3 Bit Number (decimal)
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Complementary Logical Device Address, Word 3
0
0
1
0
0
0
1
0
0
0
0
1
1
0
0
1
M1 File M1:e.3
G File - W ord 3 Starting Group
Complementary Logical Device Address, Word 3
Starting Group
Starting Group
Starting Group
6
4
2
0
6
4
2
0
6
4
2
0
6
4
2
0
0
0
1
0
0
0
1
0
0
0
0
1
1
0
0
1
RIO Logical Rack 11 Starting Group 2
RIO Logical Rack 10 Starting Group 2
RIO Logical Rack 9 Starting Group 0
RIO Logical Rack 8 Starting Group 6
RIO Logical Rack 8 Starting Group 0
Logical Device Image Size Status Word 9 - provides status/feedback of the logical device image size you configure in word 2 of the G file (primary/normal devices). A bit set to 1 shows the logical image size of each logical device. Writing to word M1 file word 9 will not alter the contents of the G file.
M1 (Status) File - W ord 9 Bit Number (decimal) Primary Logical Device Image Size, Word 9
15 1
14 1
13 1
12 0
11 0
10 1
8 0
7 1
6 1
4 1
3 1
2 0
RIO Rack 3 Image Size 4 2 0 1 1 0
6 0
RIO Rack 2 Image Size 4 2 0 1 1 0
6 1
RIO Rack 1 Image Size 4 2 0 1 1 1
6 1
RIO Rack 0 Image Size 4 2 0 0 0 1
G File - W ord 2 Primary Logical Device Image Size, Word 2
6 1
9 1
5 1
1 0
0 1
M1 File M1:e.9
Publication 1747-UM013B-EN-P - January 2005
Page 70
4-26
Scanner Configuration and Programming
Word 4 - provides status/feedback of the logical device image size you configure in word 4 of the G file (complementary devices). A bit set to 1 shows the logical image size of each logical device. Writing to word M1 file word 4 will not alter the contents of the G file.
M1 (Status) File - W ord 4 Bit Number (decimal)
15 1
Complementary Logical Device Image Size, Word 4
14 1
13 1
12 0
11 0
10 1
9 1
8 0
7 1
6 1
5 1
4 1
3 1
2 0
1 0
0 1
RIO Rack 11 Image Size 4 2 0 1 1 0
6 0
RIO Rack 10 Image Size 4 2 0 1 1 0
6 1
RIO Rack 9 Image Size 4 2 0 1 1 1
6 1
RIO Rack 8 Image Size 4 2 0 0 0 1
M1 File M1:e.4
G File - W ord 4 6 1
Complementary Logical Device Image Size, Word 4
Active Device Status Word 10 - provides active device status for primary/normal devices. When a RIO device is communicating with the scanner the bit corresponding to the device’s logical starting group is set to 1. Devices that are inhibited in the M0 file (M0:e.8 through M0:e.11) are represented by a 0. Unless devices are inhibited, not responding to communications, or configured to an incorrect logical rack size, this word is identical to the device configuration (M1:e.8).
M1 (Status) File - Word 10 14 13 12 RIO Rack 3 Starting Group 6 4 2 0
11
10 9 RIO Rack 2 Starting Group 6 4 2
8
Primary Logical Device Address, Word 8
0
0
1
0
0
0
1
Primary Logical Image Size, Word 9
1
1
1
0
0
1
Primary Active Device Status, Word 10
0
0
0
0
0
0
Bit Number (decimal)
15
A 0 indicates that the device is inhibited, not responding to communications, or configured to an incorrect logical rack size.
7
4
0
6 5 RIO Rack 1 Starting Group 6 4 2
0
0
0
0
1
0
1
1
1
0
0
0
3
0
0
2 1 RIO Rack 0 Starting Group 6 4 2
0
M1 File
1
1
0
0
1
M1:e.8
1
1
1
0
0
1
M1:e.9
0
1
1
0
0
1
M1:e.10
A 1 indicates that the configured device is active.
Word 5 - provides active device status for complementary devices. When a RIO device is communicating with the scanner the bit corresponding to the device’s logical starting group is set to 1. Devices that are inhibited in the M0 file are represented by a 0. Unless devices are inhibited, not responding to communications, or configured to an incorrect logical rack size, this word is identical to the device configuration (M1:e.3).
Publication 1747-UM013B-EN-P - January 2005
Page 71
Scanner Configuration and Programming
4-27
When a primary device is inhibited, its complementary device is also inhibited. A complementary device cannot be exclusively inhibited.
IMPORTANT
M1 (Status) File - W ord 5 14 13 12 RIO Rack 1 1 Starting Group 6 4 2 0
11
10 9 RIO Rack 10 Starting Group 6 4 2
8
Complementary Logical Device Address, Word 3
0
0
1
0
0
0
1
Complementary Logical Image Size, Word 4
1
1
1
0
0
1
Complementary Active Device Status, Word 5
0
0
0
0
0
0
Bit Number (decimal)
15
4
0
6 5 RIO Rack 9 Starting Group 6 4 2
0
0
0
0
1
0
1
1
1
0
0
0
A 0 indicates that the device is inhibited, not responding to communications, or configured to an incorrect logical rack size.
7
3
0
0
2 1 RIO Rack 8 Starting Group 6 4 2
0
M1 File
1
1
0
0
1
M1:e.3
1
1
1
0
0
1
M1:e.4
0
1
1
0
0
1
M1:e.5
A 1 indicates that the configured device is active.
Logical Device Fault Status Words 12 through 15, bits 0 to 7 - indicate the device fault status for logical racks 0, 1, 2, 3, 8, 9, 10, and 11. Bits 0 through 3 are for primary/normal devices and bits 4 through 7 are for complementary devices. Each bit corresponds to a quarter logical rack location. If a device is not responding to communications, has gone off line, or is configured to an incorrect logical rack size, all bits corresponding to the device will be set to 1. This is highlighted in the example below.
Publication 1747-UM013B-EN-P - January 2005