smartguard quickstart

89
SmartGuard Quickstart 1 SmartGuard QuickStart Contents Loading USB drivers .......................................................................................................... 3 Configuring the USB driver in RSLinx .............................................................................. 7 Communicating to PVP600 over DeviceNet .................................................................... 13 Configure Communications between a PanelView Terminal and SmartGuard 600 Controller over and EtherNet/IP Network ........................................................................ 41 Configuring the SmartGuard 600 and DeviceNet safety I/O modules as standard slaves 45 Explicit Messaging of the SmartGuard 600 over DeviceNet............................................ 60 Explicit Messaging of the 1791DS modules from Logix ................................................. 66 Configure EtherNet/IP Target IO in RSNetWorx for DeviceNet Software ..................... 73 Setup EtherNet/IP Communications between a Logix5000 Controller and the SmartGuard 600 Safety Controller ........................................................................................................ 77 Explicit Message of the SmartGuard 600 Controller over EtherNet/IP with a MicroLogix Controller .......................................................................................................................... 79 SmartGuard Wiring Diagrams: Common Safety Devices ................................................ 83

Upload: juan-vazquez

Post on 21-Feb-2015

676 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: SmartGuard QuickStart

SmartGuard Quickstart 1

SmartGuard QuickStart

Contents Loading USB drivers .......................................................................................................... 3 Configuring the USB driver in RSLinx .............................................................................. 7 Communicating to PVP600 over DeviceNet .................................................................... 13 Configure Communications between a PanelView Terminal and SmartGuard 600 Controller over and EtherNet/IP Network ........................................................................ 41 Configuring the SmartGuard 600 and DeviceNet safety I/O modules as standard slaves 45 Explicit Messaging of the SmartGuard 600 over DeviceNet............................................ 60 Explicit Messaging of the 1791DS modules from Logix ................................................. 66 Configure EtherNet/IP Target IO in RSNetWorx for DeviceNet Software ..................... 73 Setup EtherNet/IP Communications between a Logix5000 Controller and the SmartGuard 600 Safety Controller........................................................................................................ 77 Explicit Message of the SmartGuard 600 Controller over EtherNet/IP with a MicroLogix Controller .......................................................................................................................... 79 SmartGuard Wiring Diagrams: Common Safety Devices ................................................ 83 

Page 2: SmartGuard QuickStart

SmartGuard Quickstart 2

Page 3: SmartGuard QuickStart

SmartGuard Quickstart 3

 Loading USB drivers  First, you will have to load the SmartGuard USB drivers onto your PC. The files are shown in the image below; in case you ever need to search for them. Note the folder you put them into, as you will browse to it later.

Attach USB cable between SmartGuard600 and PC. The following Wizard should appear.

Page 4: SmartGuard QuickStart

SmartGuard Quickstart 4

Select; YES this time only, and click NEXT

The following appears:

Page 5: SmartGuard QuickStart

SmartGuard Quickstart 5

Select ‘Install from a list or specific location’ and select NEXT

The following appears.

Page 6: SmartGuard QuickStart

SmartGuard Quickstart 6

Browse to the folder that the SmartGuard USB drivers were placed into. Obviously, the following image is simply an example of such a browse.

Select OK, then NEXT The SmartGuard drivers are loaded, and then the following window appears if successful.

Select FINISH.

Page 7: SmartGuard QuickStart

SmartGuard Quickstart 7

Configuring the USB driver in RSLinx  Open RSLinx 2.51 or later.

Select Communications; Configure Drivers.

Page 8: SmartGuard QuickStart

SmartGuard Quickstart 8

Select the ‘SmartGuard USB Driver’ from the ‘Available Driver Types’ pulldown.

Select ‘Add New’. The following window appears.

Select OK.

Page 9: SmartGuard QuickStart

SmartGuard Quickstart 9

There is a ‘Select Interface’ pulldown on this window with only one selection. Select ‘1752 SmartGuard USB Port’. The MAC Address and Baud Rate should automatically fill in with the proper information if the SmartGuard is connected properly on the USB link. The ‘OK’ button will highlight as well. Select OK.

The following window appears.

The SmartGuard driver should now be running.

Page 10: SmartGuard QuickStart

SmartGuard Quickstart 10

Close the ‘Configure Drivers’ window. Open RSWho within RSLinx and select the SmartGuard driver (see below) to initiate browsing the DeviceNet network connected to the SmartGuard. In this example, there is a single 1791DS safety I/O module on DeviceNet with the SmartGuard controller.

The nice images of the 1791DS and SmartGuard (1752) show up because I had previously loaded the proper EDS files using the ‘EDS Hardware Installation Tool’.

If RSLinx sees the nodes on DeviceNet, RSNetworx should as well.

Page 11: SmartGuard QuickStart

SmartGuard Quickstart 11

Open RSNetWorx, create a new project, and hit the Online icon. When the following window appears, select the SmartGuard driver and hit OK.

If you have created a new project in RSNetworx, you will see the following message. Hit OK.

Page 12: SmartGuard QuickStart

SmartGuard Quickstart 12

RSNetWorx also finds both the SmartGuard and 1791DS module on the DeviceNet network. Note that the exclamation mark represents an issue with the safety network number of the 1791DS module.

Hit the online icon again to put RSNetworx in Offline mode.

Page 13: SmartGuard QuickStart

SmartGuard Quickstart 13

Communicating to PVP600 over DeviceNet  PVP has a RN10C card that is the DeviceNet scanner. The SmartGuard 600 is a DeviceNet slave.

The following from the SmartGuard users manual describes the limitations. As a standard slave, the controller can perform standard I/O communication with 1 standard master for up to 2 connections, using up to 16 bytes per connection.

Page 14: SmartGuard QuickStart

SmartGuard Quickstart 14

The two (2) connections can be selected from the 4 types, but only one connection of each type can be made. For example, one (1) polled connection and one (1) COS connection can be made, but not two (2) polled connections. Note that both Polled and COS/Cyclic allow both input and outputs (read and write) in a single connection. A Polled connection that uses both inputs and outputs can have 16 Bytes of input data and 16 Bytes of output data. And if you add a second connection, that can have an additional 16 Bytes as well. My testing discovered that if you use the Polled connection, and then added a COS/Cyclic connection, the output of this connection is grayed out. This means that the maximum data configuration is as follows:

This configuration allows 32 Bytes of input data (16 via Polled and 16 via COS or Cyclic) and 16 bytes of output data via the Polled connection. This configuration was tested and found to work. It is documented later in this document.

Page 15: SmartGuard QuickStart

SmartGuard Quickstart 15

How to read BOOLs from the SmartGuard and display them on the PVP600 Open up the SmartGuard Slave I/O configuration tab. Tags that are being read by the PVP should be entered into the IN tab.

In this case, a single 4 byte tag has been created and will use a polled connection. These 4 bytes are can be read by the PVP.

Page 16: SmartGuard QuickStart

SmartGuard Quickstart 16

But you have access to all 32 bits of the DWORD within SmartGuard editor. The sample SmartGuard code is controlling two (2) of the 32 bits. Note that those 2 tags are BOLD in the taglist because they are being used in code.

That is all you have to do in the SmartGuard 600.

Page 17: SmartGuard QuickStart

SmartGuard Quickstart 17

Just download this configuration to the SmartGuard 600 controller. For the PVP DeviceNet scanner, you must configure the scan list. The SmartGuard 600 must be added to the scan list.

Then select the ‘Edit I/O Parameters’ button, and verify it is configured as follows. Recall that our example has a 4 byte polled connection that will be an input to the PVP.

Because the Automap on Add button on the scanlist page was checked the following mapping occurred automatically. But either way, verify that the 4 bytes of input data are mapped as follows.

Page 18: SmartGuard QuickStart

SmartGuard Quickstart 18

That is all you have to do in the PVP DeviceNet Scanner. Just download this configuration to the PVP. The next step is to configure the RN10C DeviceNet Scanner. The shortcut in RSLinx Enterprise should appear similar to what follows.

Page 19: SmartGuard QuickStart

SmartGuard Quickstart 19

Note that the slot number of the RN10C is slot 2. I am unsure if it has to be slot 2, but suggest you use the same. Right click on the RN10C and select properties. Configure the properties as below.

The PVP in this example is configured for DeviceNet node 7. The SmartGuard in my example had the dip switches set for auto-sensing. (left/left/left/right from top to bottom). So you can select the baud rate that it correct for your application. Then select the I/O configuration tab on this scanner properties window.

Right click on Input and select t Add Address Block.

Page 20: SmartGuard QuickStart

SmartGuard Quickstart 20

Set the length to 4 bytes to match what the scanner is reading from the SmartGuard. It now should appear as below.

Right click on 0-3 Bytes and select Add Device.

Page 21: SmartGuard QuickStart

SmartGuard Quickstart 21

Set the node number to match your SmartGuard; 2 in this example.

Right click on 0-3 Bytes and select Add Alias. To read a BOOL that represents bit 0 of the first byte, configure it as below.

Page 22: SmartGuard QuickStart

SmartGuard Quickstart 22

It should appear as below:

Page 23: SmartGuard QuickStart

SmartGuard Quickstart 23

Lets add a second BOOL that represents bit 1 of the first byte. Right click on 0-3 Bytes and select Add Alias. Configure it as follows.

You should now see:

Hit OK to accept these properties.

Page 24: SmartGuard QuickStart

SmartGuard Quickstart 24

All that is left now is to create the PVP graphic that reads these Alias tags. This example will use two (2) mulistate indicators that read the two aliases.

The tags for each of the multistate indicators can be browsed using RSLinx Enterprise. Select the tags as shown below:

Save your project, generate a Runtime file and download it to the PVP. Observations:

- There are three (3) downloads that must take place for this to operate: o RSNetworx to SmartGuard o RSNetworx to RN10C DeviceNet Scanner o Runtime file (.mer) to PVP

It appeared that the download to the RN10C DeviceNet Scanner must be done last. If changes to the RN10C device properties do not show up in the View Studio tag browser (even after Refresh All Folders); stopping/restarting the RSView Enterprise service from the Device Manager does get the tag browser to update.

Page 25: SmartGuard QuickStart

SmartGuard Quickstart 25

How to Read/Write from/to the SmartGuard from the PVP concurrently This example is going to show how to use two (2) maintained pushbuttons on a PVP screen to control two (2) tags within the SmartGuard 600 controller. To accomplish this, a single BYTE of data will actually be sent from the PVP to SmartGuard. BYTE is the smallest piece of data that can be sent. There is no concept of a BOOL in either the PVP Scanner Properties or the SmartGuard controller. Even if you create a BOOL tag in the SmartGuard to accept data from the PVP, it uses a BYTE of data. There also are NO ANALOG values within the SmartGuard controller that you can access programmatically. All the instructions are BOOLEAN with the exceptions of timers and counters. But the presets for the timers and counters are NOT accessible programmatically. The presets are parameters within the instructions that cannot be changed online. This means that there is NO reason to send anything but BOOLean data values to the SmartGuard. And since the smallest data type within the SmartGuard is a BYTE, I see no reason to ever send less than a BYTE from the PVP to SmartGuard, even if you only are using a couple bits. The example that follows configures a BYTE of output data to be sent to the SmartGuard, but only uses two (2) buttons. If you need to send more than 8 BOOLs to the SmartGuard from the PVP, just edit the following example and change 1 BYTE to X BYTEs in all the ‘output’ parameters. Open up the SmartGuard Slave I/O configuration tab. Tags that are being read by the PVP should be entered into the IN tab. Tags that are being written to by the PVP should be entered into the OUT tab.

Page 26: SmartGuard QuickStart

SmartGuard Quickstart 26

In this case, a polled connection with 4 bytes that can be read and 1 byte that can be written to will be used.

But you have access to all the bits of both the DWORD and BYTE within SmartGuard editor.

Page 27: SmartGuard QuickStart

SmartGuard Quickstart 27

The sample SmartGuard code shown below is using two (2) bits in both buffers. Note that those 4 tags are BOLD in the taglist because they are being used in code. The Input tab is being shown in the image below. The SG_to_PV tags are located in the Output tab.

That is all you have to do in the SmartGuard 600. Just download this configuration to the SmartGuard 600 controller.

Page 28: SmartGuard QuickStart

SmartGuard Quickstart 28

For the PVP DeviceNet scanner, you must configure the scan list. The SmartGuard 600 must be added to the scan list.

Then select the ‘Edit I/O Parameters’ button, and verify it is configured as follows. Recall that our example has a polled connection that will read 4 bytes and write 1 byte between the SmartGuard and PVP.

Page 29: SmartGuard QuickStart

SmartGuard Quickstart 29

Because the Automap on Add button on the scanlist page was checked the following mapping occurred automatically. But either way, verify that the 4 bytes of input and single byte of output data are mapped as follows.

That is all you have to do in the PVP DeviceNet Scanner. Just download this configuration to the PVP. The next step is to configure the RN10C DeviceNet Scanner. The shortcut in RSLinx Enterprise should appear similar to what follows.

Page 30: SmartGuard QuickStart

SmartGuard Quickstart 30

Note that the slot number of the RN10C is slot 2. I am unsure if it has to be slot 2, but suggest you use the same. Right click on the RN10C and select properties. Configure the properties as below.

The PVP in this example is configured for DeviceNet node 7. The SmartGuard in my example had the dip switches set for auto-sensing. (left/left/left/right from top to bottom). So you can select the baud rate that it correct for your application. Then select the I/O configuration tab on this scanner properties window.

Page 31: SmartGuard QuickStart

SmartGuard Quickstart 31

The configuration of the input block is covered in the ‘How to Read BOOLs’ section of this document. Refer to that section to configure the data that will be read from the SmartGuard and displayed on the PVP. We will now show you how to configure the data that will be written from the PVP screen to the SmartGuard. Right click on Output and select Add Address Block.

Set the length to 1 byte to match what the scanner is writing to the SmartGuard. It now should appear as below.

Page 32: SmartGuard QuickStart

SmartGuard Quickstart 32

Right click on 0-0 Bytes and select Add Device.

Set the node number to match your SmartGuard; 2 in this example.

Page 33: SmartGuard QuickStart

SmartGuard Quickstart 33

Right click on 0-0 Bytes and select Add Alias. To write a BOOL to bit 0 of the first byte, configure it as below.

It should appear as below:

Page 34: SmartGuard QuickStart

SmartGuard Quickstart 34

Lets add a second BOOL to write to bit 1 of the first byte. Right click on 0-0 Bytes again and select Add Alias. Configure it as follows.

You should now see:

Hit OK to accept these properties. All that is left now is to create or add to the PVP graphic that writes these Alias tags.

Page 35: SmartGuard QuickStart

SmartGuard Quickstart 35

This example will use two (2) Maintained buttons to write the two aliases. They are circled below:

The tags for each of the maintained buttons can be browsed using RSLinx Enterprise. Select the tags as shown below:

Save your project, generate a Runtime file and download it to the PVP.

Page 36: SmartGuard QuickStart

SmartGuard Quickstart 36

COS versus POLLED The examples above used Polled to read/write data over DeviceNet. I was able to change all the appropriate settings from Polled to COS and all still worked just fine. I have documented the changes required in SmartGuard and DeviceNet Scanner properties. Note NO changes in Factory Talk View are required. The screens do not care how the scanner gets the data over DeviceNet. The following edits take place in the SmartGuard Slave I/O configuration.

Page 37: SmartGuard QuickStart

SmartGuard Quickstart 37

The following edits take place in the RN10C DeviceNet Scanner configuration in RSNetWorx.

Page 38: SmartGuard QuickStart

SmartGuard Quickstart 38

Page 39: SmartGuard QuickStart

SmartGuard Quickstart 39

Maximum Connection Sizes I created a Polled connection with 16 Bytes input and 16 Bytes output. I added a second connection (cyclic) with 16 Bytes input. The following images show the changes required to support this configuration. Within SmartGuard

Within DeviceNet Scanner

Page 40: SmartGuard QuickStart

SmartGuard Quickstart 40

Within Factory Talk View RSLinx Enterprise

Page 41: SmartGuard QuickStart

SmartGuard Quickstart 41

Configure Communications between a PanelView Terminal and SmartGuard 600 Controller over and EtherNet/IP Network  Configure the SmartGuard Open up the SmartGuard EtherNet/IP Target I/O configuration tab. Here you can configure up to 4 target assemblies (2 input, 2 output). Configure an Input assembly for data you wish to send from the SmartGuard to the PanelView. Configure an Output assembly for data you wish to send from the PanelView to the SmartGuard. Each assembly can be up to 16 bytes. Select New to configure a new assembly:

For Input assemblies you can add predefined status data to your assembly by selecting the corresponding check boxes.

Page 42: SmartGuard QuickStart

SmartGuard Quickstart 42

Select New under the Routing I/O section allows you to add status information from distributed safety I/O to the Input assembly:

You can also add tags to the assembly.

The tags you create are accessible within your logic program in the SmartGuard:

Page 43: SmartGuard QuickStart

SmartGuard Quickstart 43

When your assemblies have been configured they will be displayed on this tab.

Configure the PanelView Open your PanelView application within PanelBuilder32 software.

The first step is to define the communications path between the PanelView and the SmartGuard 600. This is configured in the Communications Setup dialog.

Open Communications Setup in the Application Explorer.

From the Communications Setup – Ethernet dialog, press Insert on your keyboard to insert a new node.

Page 44: SmartGuard QuickStart

SmartGuard Quickstart 44

In the cells, define a Node Name, enter the Node Address of the SmartGuard, and define the node type as Generic CIP.

Click OK to confirm the Communications Setup.

The next step is to define tags within the PanelView tag database that will access the target I/O assemblies in the SmartGuard 600.

Open the Tag Editor in the Application Explorer.

On the bottom of the Tag Editor, select ENet – CIP:

Click Insert to add a new tag.

In the new tag cells, enter a Tag Name, a Data Type, and Node Name (which matches the Node Name you defined for the SmartGuard in the Communications Setup). In this example, we will choose DINT as the data type.

The next step is to define the CIP service, class, instance and attribute codes for the tag in order to access the correct target I/O assemblies in the SmartGuard controller.

There can be up to 4 target I/O assemblies configured in the SmartGuard (2 input and 2 output).

Page 45: SmartGuard QuickStart

SmartGuard Quickstart 45

For Input Assemblies, the CIP message codes are as follows:

• Service: 0xE – Get Single Attribute

• Class: 4

• Instance: 100 or 101 (Input1 or Input2 respectively)

• Attribute: 3

For Output Assemblies, the CIP message codes are as follows:

• Service: 0x10 – Set Single Attribute

• Class: 4

• Instance: 102 or 103 (Output1 or Output2 respectively)

• Attribute: 3

This example shows a CIP message code that accesses Input Assembly 1 of the SmartGuard Controller:

The Member field will always be defined as 1.

The maximum size of a single member tag defined in the PanelView is a DINT (4 bytes). A target I/O assembly in the SmartGuard can be as large as 16 bytes. In order to access all of the bytes in the target assembly, it may be required that you create up to 4 DINT tags, where an Offset is defined for each tag to correspond with the target bytes of said tag.

Configuring the SmartGuard 600 and DeviceNet safety I/O modules as standard slaves  Configuring the SmartGuard 600 and DeviceNet safety I/O modules as standard slaves, even though a safety connection exists between the two devices. A typical architecture has the SmartGuard 600 configured as a safety scanner with a connection to a 1791DS safety I/O module slave. Both devices can also concurrently be configured as standard slaves to a standard scanner (such as a 1756-DNB) to obtain status. This application note will describe the steps required to configure the standard side of this architecture. Part 1: configure the SmartGuard 600 as a standard slave to a 1756-DNB. When the 1756-DNB scanlist is viewed, notice that the SmartGuard 600 does not appear in the list of available devices.

Page 46: SmartGuard QuickStart

SmartGuard Quickstart 46

This is because no data has been placed in the SmartGuard 600 Slave I/O tab. Once you place data in the slave I/O tab, it will appear in the ‘available devices’. The standard data is configured in the Slave I/O tab of the SmartGuard 600. This tab is circled below:

Select the Slave I/O tab. The following window appears.

Page 47: SmartGuard QuickStart

SmartGuard Quickstart 47

Select New (circled above) to add data. The following window appears.

Notice there are two tabs; OUT and IN. These are in relation to the scanner. The OUT tab is data that will be sent from the Scanner to the SmartGuard 600. Reset buttons are one example of this type of data. The IN tab is data sent from the SmartGuard 600 to the Scanner. This is typically status data.

Page 48: SmartGuard QuickStart

SmartGuard Quickstart 48

Select the IN tab. The following screen appears.

The first selection is which I/O type of connection to use; Poll, Bit-Strobe, COS, or Cyclic. The following information should be helpful in determining which type to use. As a standard slave, the controller can perform standard I/O communication with 1 standard master for up to 2 connections, using up to 16 bytes per connection. The two (2) connections can be selected from the 4 types, but only one connection of each type can be made. For example, one (1) polled connection and one (1) COS connection can be made, but not two (2) polled connections. Polled, COS, and Cyclic allow both input and outputs (read and write) in a single connection. Bit-Strobe only allows data to be sent to the Scanner. A connection that uses both inputs and outputs can have 16 Bytes of input data and 16 Bytes of output data. And if you add a second connection, that can have an additional 16 Bytes of inputs as well. My testing discovered that if you use the Polled connection, and then added a COS/Cyclic connection, the output of this connection is grayed out. This means that the maximum data configuration is as follows:

Page 49: SmartGuard QuickStart

SmartGuard Quickstart 49

This configuration allows 32 Bytes of input data (16 via Polled and 16 via COS or Cyclic) and 16 bytes of output data via the Polled connection. This configuration was tested and found to work. Once the type of connection has been selected, the data to be sent over this connection is chosen. If you wish to send the data values and channel status, then there are predefined boxes that can be checked. General Status is 8 bits of data: Bit0 – Input Power Supply Voltage status OFF- Power supply is ON (Normal) ON – Power supply error or OFF Bit1 – Output Power Supply Voltage status OFF- Power supply is ON (Normal) ON – Power supply error or OFF Bit2 – Standard I/O comms error flag OFF – No error ON – Error Bit3 – Standard I/O comms Status flag OFF – comms stopped or error ON – comms normal Bit4 – Safety I/O comms error flag OFF – No error ON – Error Bit5 – Safety I/O comms Status flag OFF – comms stopped or error ON – comms normal Bit6 – Operating Mode Flag OFF – Not in RUN mode ON – RUN mode Bit7 – Controller Status Flag OFF – Error ON – Normal Local Input Status – Status of the 16 local inputs (OFF – channel fault) (ON-normal) Local Output status – Status of the 8 local outputs (OFF – channel fault) (ON-normal) Test Output / Muting Lamp status – Status of the 4 test outputs Local I/O Input Monitor – Current Data Value of the 16 local inputs Local I/O Output Monitor – Current Data Value of the 8 local outputs

Page 50: SmartGuard QuickStart

SmartGuard Quickstart 50

None, any, or all of the above can be selected. If all are selected, see below, 8 bytes of data are required. The following screen appears after OK is selected. Notice this is a Polled connection.

If you wish to add tags that are being controlled programmatically to the data send to the scanner using the Input Polled connection, click on the Edit button circled above. Select the Input tab and the following should re-appear.

Page 51: SmartGuard QuickStart

SmartGuard Quickstart 51

Click the New button and the following window appears.

Enter the name of the tag that will be sent to the Scanner. This tag will then appear in the standard outputs of the SmartGuard 600 and can be used programmatically. For example, if I call the tag, DATA_to_SCANNER, and make it a DWORD, then the following will appear in the SmartGuard editor.

Page 52: SmartGuard QuickStart

SmartGuard Quickstart 52

Notice that since the tag was a DWORD, 32 bits are available to use within the SmartGuard program. BYTE is the smallest piece of data that will be sent to the Scanner. There is no concept of a BOOL in the SmartGuard controller. Even if you create a BOOL tag in the SmartGuard to be sent to the Scanner, it uses a BYTE of data. The suggestion is to use BYTE, WORD, or DWORD to create 8, 16, or 32 tags that can be used programmatically. The input tab will appear as follows after the DWORD is added.

Page 53: SmartGuard QuickStart

SmartGuard Quickstart 53

Hit Apply, then OK to close the SmartGuard properties. Take a look at the 1756-DNB scanlist and you will see that the SmartGuard 600 [1752-L24BBB] has appeared in the available device list.

Place the SmartGuard in the scanlist, and select Edit I/O Parameters. The following should appear.

Page 54: SmartGuard QuickStart

SmartGuard Quickstart 54

As expected, the Polled connection of the Scanner will read 12 bytes of data from the SmartGuard. The mapping of these 12 bytes defaults to the following.

If you wanted to send data from the Scanner to the SmartGuard, you would do the following. Again, resets are one example of this type of data. Return to the SmartGuard Slave I/O tab, and select edit to add data to the Polled connection. Verify that you are in the OUT (output) tab circled below.

Page 55: SmartGuard QuickStart

SmartGuard Quickstart 55

Notice that the Status and Local I/O monitor are grayed out because this is data sent from the Scanner to the SmartGuard Slave. Select New and the following window appears.

Enter the name of the tag that will be sent from the Scanner. This tag will then appear in the standard inputs of the SmartGuard 600 and can be used programmatically. For example, if the tag is called, DATA_from_SCANNER, and made a DWORD, then the following will appear in the SmartGuard editor.

Page 56: SmartGuard QuickStart

SmartGuard Quickstart 56

As with outbound data, BYTE is the smallest piece of data that can be received. There is no concept of a BOOL in the SmartGuard controller. Even if you create a BOOL tag in the SmartGuard to accept data from the Scanner, it uses a BYTE of data. There also are NO ANALOG values within the SmartGuard controller that you can access programmatically. All the instructions are BOOLEAN with the exceptions of timers and counters. But the presets for the timers and counters are NOT accessible programmatically. The presets are parameters within the instructions that cannot be changed online. This means that there is NO reason to send anything but BOOLean data values to the SmartGuard. And since the smallest data type within the SmartGuard is a BYTE, there is little reason to ever send less than a BYTE from the Scanner to SmartGuard, even if you only are using a couple bits. After the tag is added, the input connection will appear as shown below.

Page 57: SmartGuard QuickStart

SmartGuard Quickstart 57

There are now 12 bytes being sent to the Scanner and 4 bytes being sent to the SmartGuard. Hit apply, then OK, and open the scanlist of the 1756-DNB. Edit the I/O parameters of the SmartGuard and they should appear as shown below.

That completes the slave configuration for the SmartGuard controller. Now lets configure the standard slave configuration for the 1791DS safety I/O module. The 1791DS module should automatically appear in the 1756-DNB list of available devices.

Page 58: SmartGuard QuickStart

SmartGuard Quickstart 58

The reason is that the 1791DS module has pre-configured options for reading standard data. They are as follows. To view them, open the properties of the 1791DS module and select the I/O data tab. These sizes and data contained within them cannot be altered.

Page 59: SmartGuard QuickStart

SmartGuard Quickstart 59

These will appear differently based on which safety I/O module has been selected, but in general the Bit-Strobe and Polled connection provide the I/O data values and channel status. Note that the Polled connection even has the ability to write standard data to the I/O module. This only is used if the Test Outputs have been configured as standard outputs, and those standard outputs can then be controlled from the Scanner. COS and Cyclic provide Power Status, which cannot be obtained from Bit Strobe or Polled. To select one of these connection types, move the 1791DS module into the 1756-DNB scanlist and select Edit I/O Parameters. You should see something similar to the following window.

Any of the four (4) connection types will work individually. In fact, two connections can be made simultaneously to the 1791DS module. The input and output sizes cannot be changed because the sizes are fixed within the 1791DS module. That completes the slave configuration for the 1791DS safety I/O module.

Page 60: SmartGuard QuickStart

SmartGuard Quickstart 60

Explicit Messaging of the SmartGuard 600 over DeviceNet  If you are going to obtain input data, output data, and general status from the SmartGuard 600, this is generally done by placing the SmartGuard into the scanlist of a DeviceNet Scanner. . When configured as a slave, you can easily select the types of status and data to obtain by simply checking the appropriate boxes as shown below. This is described in chapter 4 of this document

But these types of data and status can also be obtained from the SmartGuard 600 using explicit message instructions.

Page 61: SmartGuard QuickStart

SmartGuard Quickstart 61

The example above shows three separate MSG instructions. The first reads the input data and input status for the 16 local SmartGuard input channels. The second reads the General Status information. The third reads the output data for the 8 local SmartGuard output channels and the four (4) test outputs. Input Data and Input Status The MSG instruction is configured as shown below.

The Source Element is an array of SINT[4] with the following values. The value of 4 enables the reading of 4 bytes; two for the 16 input data channels and two for the status of the16 input channels.

The Destination is also an array of SINT[4] to hold these 4 bytes of data. The input data will be in the first 2 bytes (0/1), and the input status will be in the last 2 bytes (2/3).

Page 62: SmartGuard QuickStart

SmartGuard Quickstart 62

General Status The MSG instruction is configured as shown below.

No Source element is required because the service type is GET ATTRIBUTE SINGLE. The Destination is a single SINT, because the General Status returns just a single byte of information. This byte is described in detail in chapter 4 of this document.

Page 63: SmartGuard QuickStart

SmartGuard Quickstart 63

Output Data and Test Output Data The MSG instruction is configured as shown below.

The Source Element is an array of SINT[4] with the following values. The value of 2 enables the reading of 2 bytes; one for the 8 output data channels and one for the 4 test outputs. The upper 4 bits of the second byte are reserved.

The Destination is an array of SINT[2] to hold both bytes of data. The output data will be in the first byte(0), and the test output data will be in the 2nd byte(1).

As discussed earlier, the data above can easily be read by putting the SG in scan list of DNet scanner. The more likely scenario is to use the explicit messaging to read more specific data such as lock/unlock status as well as individual fault codes for input and output channels. The following example shows how to read whether the SmartGuard 600 is locked or unlocked.

Page 64: SmartGuard QuickStart

SmartGuard Quickstart 64

Lock Status

The MSG instruction is configured as shown below.

No Source element is required because the service type is GET ATTRIBUTE SINGLE. The Destination is a single SINT, because the General Status returns just a single byte of information. A value of 1 in bit0 of this byte indicates the SmartGuard is locked. A value of 0 represents unlocked.

The following is an example that shows how to read fault code for an input channel. The status (NORMAL/FAULTED) of the channel would typically be obtained by putting the SmartGuard in the scanlist of a scanner or doing the explicit message for input data/status described earlier in this section. If the channel status is faulted, the following explicit message can be used to obtain the fault code for that individual channel.

Page 65: SmartGuard QuickStart

SmartGuard Quickstart 65

Input Channel Fault Code The MSG instruction is configured as shown below. Note that a value of 5 in the instance field represents channel 4. Instances begin at 1; channels begin at 0.

No Source element is required because the service type is GET ATTRIBUTE SINGLE. The Destination is a single SINT, because the Fault Code returns just a single byte of information.

The fault code values are as follows:

Value = 2 typically would be a pulse test fault Value = 4 typically means that dual channel devices are diverse Value = 5 typically means that the channels partner (dual channel) has faulted Refer to the SmartGuard Users Manual for more information on data that can be read via explicit messaging.

Page 66: SmartGuard QuickStart

SmartGuard Quickstart 66

Explicit Messaging of the 1791DS modules from Logix  It is common for users to use the implicit I/O connection to read the combined status of the inputs and outputs. If the combined status bit indicates an issue, then the user can utilize explicit messaging to gather detailed status information to the point level. The 1791DS Users Manual (1791DS-UM001x) shows the different assemblies that can be read from the module. An example from this manual is show here:

The values of the safety inputs, safety input status, safety output status and muting lamp status are examples of data that can be explicitly read from these modules. The following example uses assembly 344 to explicitly read from the 1791DS-IB8xOBV4 module.

Page 67: SmartGuard QuickStart

SmartGuard Quickstart 67

Every time run_msg has a LO to HI transition, the message instruction is sent. Configure the MSG as shown here:

836 is the decimal equivalent of 344(hex). DS_IB8xOBV4_status is a standard tag and a DINT.

Because assembly 836 requires 4 bytes, a single DINT tag works perfectly. When the message is done, the data appears as shown:

Page 68: SmartGuard QuickStart

SmartGuard Quickstart 68

Note that you have to match up the assembly to the data above. For example, bit 8 shows the status of safety input channel 0.

A UDT can be used to easily describe the bits. The following UDT was created for assembly 836.

Page 69: SmartGuard QuickStart

SmartGuard Quickstart 69

A tag was created that used this UDT data type.

This new tag was placed into the Destination of the MSG instruction.

Page 70: SmartGuard QuickStart

SmartGuard Quickstart 70

Now when the message is run, the data appears in the UDT as shown:

The tagnames are much more descriptive. Please take note of the fact that this status is NOT safe data. Do not use the first byte in safety logic. Just use it for HMIs.

Page 71: SmartGuard QuickStart

SmartGuard Quickstart 71

If the channel status bit goes LO; then you can use the following explicit messages to get detailed information about the specific channel fault.

The MSG instruction is configured as shown below. Note that a value of 5 in the instance field represents channel 4. Instances begin at 1; channels begin at 0.

Page 72: SmartGuard QuickStart

SmartGuard Quickstart 72

No Source element is required because the service type is GET ATTRIBUTE SINGLE. The Destination is a single SINT, because the Fault Code returns just a single byte of information.

The fault code values are as follows:

Value = 2 typically would be a pulse test fault Value = 4 typically means that dual channel devices are diverse Value = 5 typically means that the channels partner (dual channel) has faulted Refer to the 1791DS Users Manual for more information on data that can be read via explicit messaging.

Page 73: SmartGuard QuickStart

SmartGuard Quickstart 73

Configure EtherNet/IP Target IO in RSNetWorx for DeviceNet Software  Follow these steps to create standard EtherNet/IP target I/O assemblies:

1. In RSNetWorx for DeviceNet software, right-click the SmartGuard controller and choose Properties.

2. Select the EtherNet/IP Target I/O tab.

3. Click New. The following dialog appears.

Page 74: SmartGuard QuickStart

SmartGuard Quickstart 74

4. Under I/O type, select either Target Input or Target Output.

Target Input means that this data is produced by the SmartGuard controller and read be the originating device. Target Output means that this data is produced by the originating device and is sent to the SmartGuard controller. If you have checked Target Input, you can include the following status information in the I/O assembly. Tag Name Data Size Attribute Type General Status Byte Local Input Status Word Local Output Status Test Output/Muting Lamp Status

Byte

Non-safety

5. Add status information for input types by checking the Status checkboxes.

6. Add local I/O monitor data for input types by checking the appropriate Local I/O

Monitor checkbox. Tag Name Data Size Attribute Type Local Input Monitor 1 (Inputs 0…7) Local Input Monitor 2 (Inputs 8…15) Local Output Monitor (Outputs 0…7)

Byte Non-Safety

Output types cannot include local I/O monitor data. You can only read and input and output values; you cannot directly write to them.

7. Add Routing I/O data for the modules. If the SmartGuard controller is controlling safety DIO modules on the DeviceNet network, using the Routing I/O feature lets the values of the I/O points on the DIO modules to be passed to a standard controller or an HMI interface on the EtherNet/IP network. Modules only appear in the routing I/O table after they have been added to the Safety Scan list and you have pressed Apply.

a. Under Routing I/O, click New. b. Expand the node you would like to add routing data for. c. Expand one of the listed assemblies. d. Select the byte you would like to add.

Page 75: SmartGuard QuickStart

SmartGuard Quickstart 75

e. Click OK. f. Repeat steps a. . . e to add additional Routing I/O.

8. Under I/O Tag, Click New to create an I/O tag.

Multiple I/O tags can be defined in an I/O assembly. I/O tags up to 16 bytes can be defined in each I/O assembly. The I/O tags here can be used in the Logic Editor. For example, you can use a signal from an HMI interface to perform a Circuit Reset function. You would define the tag here, and then be able to use it in your SmartGuard logic. The following dialog box appears.

9. Enter a name for the tag and check the type. The choices are BOOL, BYTE, WORD, or DWORD.

10. Click OK. The following dialog box appears.

Page 76: SmartGuard QuickStart

SmartGuard Quickstart 76

11. Create a tag name for each bit in an I/O assembly. a. Under I/O Tag, select the applicable assembly and click Edit Comment. b. Expand the node that you would like to add routing data for. c. Enter a comment for each bit in the tag.

The tag name comments entered here are displayed in the Logic Editor.

12. Click OK to return to the EtherNet/IP Target I/O tab. You can create additional input or output assemblies needed for your application by repeating steps 2. . .11.

13. To save your configuration, choose File>Save.

Page 77: SmartGuard QuickStart

SmartGuard Quickstart 77

Setup EtherNet/IP Communications between a Logix5000 Controller and the SmartGuard 600 Safety Controller  Once you have configured the data to be shared in the SmartGuard controller, you can now use the RSLogix 5000 software and the standard generic profile to exchange that data with a Logix5000 controller. Follow these steps to connect to the controller.

1. Right-click the Ethernet network in the controller organizer and choose New Module.

2. Expand the Communications group and select ETHERNET-MODULE.

Page 78: SmartGuard QuickStart

SmartGuard Quickstart 78

3. Click OK.

4. On the New Module dialog, set the parameters as needed.

This dialog shows the instance values for an input/output connection.

The table provides the instance values for an input/output connection and input only connection. Connection Type Instance Number

Input (SmartGuard to Logix) 100, 101 Input/Output Output (Logix to SmartGuard) 102, 103 Input 100, 101 Input only Output 199

5. Click OK.

Page 79: SmartGuard QuickStart

SmartGuard Quickstart 79

Explicit Message of the SmartGuard 600 Controller over EtherNet/IP with a MicroLogix Controller  Follow these steps to program a MicroLogix controller to explicitly message the EtherNet/IP target assemblies in the SmartGuard controller.

1. Launch RSLogix 500 software.

2. Open a new file.

3. Select the controller.

4. In the Channel Configuration dialog box, set the IP address of the MicroLogix controller:

a. Right-click Channel Configuration and choose Open.

Page 80: SmartGuard QuickStart

SmartGuard Quickstart 80

b. Type the IP address for the MicroLogix controller.

5. In the Data File dialog, configure an Extended Routing Information data file:

a. Right-click Data Files and choose New.

Page 81: SmartGuard QuickStart

SmartGuard Quickstart 81

b. In the Create Data File dialog, enter an available File number and choose Extended Routing Information for the Type.

c. Click OK.

6. Enter the following rung of ladder logic:

7. Select Setup Screen to configure the message.

The MSG dialog box opens.

8. Configure the message with the following properties:

Page 82: SmartGuard QuickStart

SmartGuard Quickstart 82

The Service attribute should be configured as one of the following:

• Read Assembly – if you are reading an input assembly in the SmartGuard controller.

• Write Assembly – if you are writing to an output assembly in the SmartGuard controller.

The instance value corresponds to the input/output EtherNet/IP target assemblies in the SmartGuard controller. Enter the Instance number based on this table.

Instance Number Connection Type 100 (EtherNet/IP Input 1 in SmartGuard) Input (SmartGuard to MicroLogix) 101 (EtherNet/IP Input 2 in SmartGuard) Input (SmartGuard to MicroLogix) 103 (EtherNet/IP Output 1 in SmartGuard) Output (MicroLogix to SmartGuard) 104 (EtherNet/IP Output 2 in SmartGuard) Output (MicroLogix to SmartGuard)

The message size (in bytes) should be configured to match the target assembly size in the SmartGuard controller.

9. Click the MulitHop tab.

10. Configure the routing to target the IP address of the SmartGuard 600 controller.

11. Click OK.

12. Verify your changes to the project.

13. Download the project to the MicroLogix controller.

14. Place the MicroLogix controller in Run mode.

15. The status information from the SmartGuard controller now populates the N7 file of the MicroLogix controller.

Page 83: SmartGuard QuickStart

SmartGuard Quickstart 83

SmartGuard Wiring Diagrams: Common Safety Devices 

EStop / Dry Contacts 

CAT 2  CAT 3  CAT 4 

     

Tongue Interlocks/ Dry Contacts 

CAT2  CAT3  CAT4 

 

Page 84: SmartGuard QuickStart

SmartGuard Quickstart 84

Light Curtains, OSSD1 OSSD2 Devices 

CAT2  CAT3  CAT4 

  

GuardShield 

CAT4 

 

Page 85: SmartGuard QuickStart

SmartGuard Quickstart 85

Solenoid Locking Switch / Dry Contacts 

CAT2  CAT3  CAT4 

  

Electronic Sensors 

CAT2  CAT3  CAT4 

 

 

N/A 

Page 86: SmartGuard QuickStart

SmartGuard Quickstart 86

Safety Contactors [OB Outputs] 

CAT2  CAT3/CAT4 

 

 

Safety Contactors [OBV Outputs] 

CAT2  CAT3/CAT4 

 

Page 87: SmartGuard QuickStart

SmartGuard Quickstart 87

Kinetix 6000 Safety Drives [OB Outputs] 

CAT2  CAT3  CAT4 

   

 

Kinetix 6000 Safety Drives [OBV Outputs] 

CAT3  CAT4 

  

Page 88: SmartGuard QuickStart

SmartGuard Quickstart 88

PowerFlex Safety Drives [OBV Outputs] 

CAT3  CAT4 

   

Standard Drives [OBV Outputs] 

CAT2  CAT3/CAT4 

 

 

Page 89: SmartGuard QuickStart

SmartGuard Quickstart 89