- Computers & electronics
- Networking
- Gateways/controllers
- Real Time Automation
- 460PSUSB Protocol Gateway
- User manual
- 77 Pages
Real Time Automation 460PSUSB Protocol Gateway Product User Guide
Below you will find brief information for 460PSUSB Protocol Gateway. This guide covers the basic procedures for configuring the 460PSUSB Protocol Gateway. This gateway connects a PROFINET I/O Controller to as many as 2 USB devices. This gateway allows you to configure the device’s network settings, configure device specific parameters for initial operation, and lastly integrate the device into your application.
advertisement
Assistant Bot
Need help? Our chatbot has already read the manual and is ready to assist you. Feel free to ask any questions about the device, but providing details will make the conversation more productive.
460PSUSB - Protocol Gateway
Product User Guide
Software Build Date: July 23
rd
, 2015
Version 6
Real Time Automation, Inc. 1 1-800-249-1612
Trademarks
CompactLogix, ControlLogix, & PLC-5 are registered trademarks of Rockwell Automation, Inc. EtherNet/IP is a trademark of the ODVA.
MicroLogix, RSLogix 500, and SLC are trademarks of Rockwell Automation, Inc. Microsoft, Windows, and Internet Explorer are registered trademarks of Microsoft Corporation. BACnet
®
is a registered trademark of American Society of Heating, Refrigerating and Air-Conditioning
Engineers (ASHRAE). All other trademarks and registered trademarks are the property of their holders.
Limited Warranty
Real Time Automation, Inc. warrants that this product is free from defects and functions properly.
EXCEPT AS SPECIFICALLY SET FORTH ABOVE, REAL TIME AUTOMATION, INC. DISCLAIMS ALL OTHER WARRANTIES, BOTH
EXPRESSED AND IMPLIED, INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A
PARTICULAR APPLICATION. THIS LIMITED WARRANTY GIVES YOU SPECIFIC LEGAL RIGHTS. YOU MAY ALSO HAVE OTHER
RIGHTS, WHICH VARY FROM STATE TO STATE.
The examples and diagrams in this manual are included solely for illustrative purposes. Because of the many variables and requirements associated with any particular application, Real Time Automation, Inc. cannot assume responsibility or liability for actual use based on the examples and diagrams. Except as specifically set forth above, Real Time Automation and its distributors and dealers will in no event be liable for any damages whatsoever, either direct or indirect, including but not limited to loss of business profits, income, or use of data. Some states do not allow exclusion or limitation of incidental or consequential damages; therefore, the limitations set forth in this agreement may not apply to you.
No patent liability is assumed by Real Time Automation with respect to use of information, circuits, equipment, or software described in this manual.
Government End-Users
If this software is acquired by or on behalf of a unit or agency of the United States Government, this provision applies: The software (a) was developed at private expense, is existing computer software, and was not developed with government funds; (b) is a trade secret of Real Time
Automation, Inc. for all purposes of the Freedom of Information Act; (c) is “restricted computer software” submitted with restricted rights in accordance with subparagraphs (a) through (d) of the Commercial “Computer Software-Restricted Rights” clause at 52.227-19 and its successors; (d) in all respects is proprietary data belonging solely to Real Time Automation, Inc.; (e) is unpublished and all rights are reserved under copyright laws of the United States. For units of the Department of Defense (DoD), this software is licensed only with “Restricted Rights”: as that term is defined in the DoD Supplement of the Federal Acquisition Regulation 52.227-7013 (c) (1) (ii), rights in Technical Data and
Computer Software and its successors, and: Use, duplication, or disclosures is subject to restrictions as set forth in subdivision (c) (1) (ii) of the
Rights in Technical Data and Computer Software clause at 52.227-7013. If this software was acquired under GSA schedule, the U.S.
Government has agreed to refrain from changing or removing any insignia or lettering from the Software or documentation that is provided or from producing copies of the manual or media. Real Time Automation, Inc.
© 2015 Real Time Automation, Inc. All rights reserved.
Real Time Automation, Inc. 2 1-800-249-1612
Real Time Automation, Inc. 3 1-800-249-1612
Real Time Automation, Inc. 4 1-800-249-1612
Overview
The 460PSUSB gateway connects a PROFINET I/O Controller to as many as 2 USB devices. By following this guide, you will be able to configure the 460PSUSB gateway.
You will set the gateway’s network settings, configure device specific parameters for initial operation, and integrate the device into your application.
For further customization and advanced use, please reference the appendices located on the CD. If at any time you need further assistance do not hesitate to call Real Time Automation support.
Support Hours are Monday-Friday 8am-5pm CST
Toll free: 800-249-1612
Email: [email protected]
Real Time Automation, Inc. 5 1-800-249-1612
Required Tools and Data
You will need the following tools:
The gateway
The provided CD-ROM o
IPSetup.exe can also be downloaded: http://www.rtaautomation.com/product/460-gateway-support/
A PC with an internet browser o
Browser configuration is Firefox / Internet Explorer / Google Chrome compatible
The supplied Ethernet crossover cable
A 7-30 VDC power source
Real Time Automation, Inc. 6 1-800-249-1612
Accessing the Main Page
The following steps will allow you to connect to the browser based configuration of the gateway.
1) Connect a 7-30 VDC power source to the gateway.
a. Warning improper wiring will cause unit failure b. Use the Barrel Connector OR the Screw Terminals power connection, NOT both
2) Using the supplied crossover cable, connect the gateway to your PC.
3) Insert the provided CD-ROM.
4) Run the IPSetup.exe program from the CD-ROM.
5) Configure the IP Settings of the gateway to be on the same subnet as your PC.
6) Click Launch Webpage. The Main page should appear.
Default IP Address is 192.168.0.100.
Default Subnet is 255.255.255.0.
Real Time Automation, Inc. 7 1-800-249-1612
Error: Main Page Does Not Launch
If the Main Page does not launch please verify the following:
1. Check that the PC is set for a Static IP Address a. Open a MS-DOS Command Prompt b. Type “ipconfig” and press enter c. Note the PC’s IP Address, Subnet, and Default Gateway i. An invalid IP Address would be: 169.254.x.x
2. The gateway must be on the same Network/Subnet as the PC
Once you have both devices on the same network, you should be able to ping the gateway using a MS-
DOS Command Prompt.
If you are able to successfully ping your gateway, open a browser and try to view the main page of the gateway by entering the IP Address of the gateway as the URL.
Real Time Automation, Inc. 8 1-800-249-1612
Main Page
The main page is where important information about your gateway and its connections are displayed.
Mode (orange box below):
Running Mode:
- Protocol communications are enabled
- Configuration cannot be changed during Running Mode. If changes are needed, click the Configuration Mode button shown in the green box below
Configuration Mode:
- Protocol communication is stopped and no data is transmitted
- Configuration is allowed
Navigation (green box below):
You can easily switch between modes and navigate between pages (Configuration, Diagnostics, and Other pages) using the buttons on the left hand side.
Real Time Automation, Inc. 9 1-800-249-1612
Device Configuration
The device configuration area is where you assign the device description, IP address, and other network parameters. Changes can only be made when the gateway is in Configuration Mode. Click the Edit button to make these changes.
Once you are done configuring the Description and the Network Settings, click the Save Parameters button.
If you are changing the IP Address of the gateway, the change will not take effect until the unit has been rebooted. After reboot, you must enter the new IP Address into the URL.
It is recommended to leave the DNS Gateway set to 0.0.0.0 and the Ethernet Link as
Auto-Negotiate. If configuring the gateway to use E-mail, the DNS Gateway must be set.
Real Time Automation, Inc. 10 1-800-249-1612
PROFINET IO Server Configuration
Click the PROFINET IO Server button to display the PROFINET configuration page.
1) Device Label: Enter a label to identify the PROFINET IO Server within the Controller. This name must match the Device Name field in the PROFINET IO Controller. It is not case-sensitive.
NOTE: The gateway will always save the Device Label in lower-case.
Note: To properly set communication to the PROFINET Controller, you will need to install the GSD file provided on the CD that was shipped with the unit. For instructions on how to do this, please see the
Setting up the PLC- Example Using Simatic Step 7 software
and Setting up the PLC- Example Using TIA
WARNING:
This gateway does not support the assignment of the IP address via the IO controller function. This function must be disabled for the system to function properly.
Real Time Automation, Inc. 11 1-800-249-1612
PROFINET IO Server Slot Configuration
The bottom area of the PROFINET IO Server Configuration page lets you configure multiple Input and
Output Slots.
1) Data Size is configurable. Options include: 8, 16, 32, 64, and 128 Bytes.
2) Data Format sets the formatting of the data. Automap will use this packing size to map data to/from the other protocol.
There are two ways to configure this protocol:
• Auto-Server Mode(Default)
• Manual Mode
NOTE: You may go back and forth between modes, but when reverting from Manual Mode to Auto-
Server Mode, all changes made in Manual Mode will be discarded.
Real Time Automation, Inc. 12 1-800-249-1612
PROFINET IO Server Slot Configuration: Auto-Server Mode (Default)
While in Auto-Server mode the Data Groups themselves cannot be edited. Auto-Server Mode looks at the other protocol and then configures the Data Groups to match. The Data Size and Data Formats will be defined after the other protocol is configured.
The data will be configured according to the following rules:
• Any 8 Bit Signed/Unsigned data will be mapped as 8 Bit Int or 8 Bit Uint, matching signs whenever possible.
• Any 16 Bit Signed/Unsigned data will be mapped as 16 Bit Int or 16 Bit Uint, matching signs whenever possible.
• Any 32 Bit Signed/Unsigned data will be mapped as 32 Bit Int or 32 Bit Uint, matching signs whenever possible.
• Any 64 Bit Signed/Unsigned data will be mapped as 64 Bit Int or 64 Bit Uint, matching signs whenever possible.
• Any 32 Bit Float will be mapped as 32 Bit Float.
• Any 64 Bit Float will be mapped as 64 Bit Float.
• Any Strings will be mapped as Short String.
• Any Coils or 1/8/16/32 Bit Binary Packs will be mapped as Binary 8 Bit Pack/Binary 16 Bit
Pack/Binary 32 Bit Pack, matching bit sizes whenever possible.
• The Input or Output direction depends on whether it is configured as an Input/Read or
Output/Write on the other protocol.
• If the other protocol exceeds the number of data size supported, then nothing will be mapped.
You will see all the Data Size values remain at Disabled and the main page will display the following error: o
To fix this error, simply decrease the amount of data you configured on the other protocol so that the max data size is not exceeded OR call customer support to increase the limits.
To edit slot data sizes or formats you will need to go into Manual Mode.
Real Time Automation, Inc. 13 1-800-249-1612
PROFINET IO Server Slot Configuration: Manual Mode
1. Click the Edit Data Groups button to switch from Auto-Server Mode to Manual Mode. Once clicked the button will read Auto-Configure Server. The fields next to the different Slots can now be edited. a. When prompted, click OK to confirm mode change or Cancel to remain in Auto Mode. b. Click OK again to keep current Data Group settings or click Cancel to discard the current configuration.
2. Input Slots: Select the data size, in bytes, to move data from the gateway to the Controller. Then select the data format for that slot.
3. Output Slots: Select the data size, in bytes, to move data from the Controller to the gateway.
Then select the data format for that slot.
Real Time Automation, Inc. 14 1-800-249-1612
Example Setup
Siemens Simatic Step 7 Configuration Example:
Siemens TIA Portal Configuration Example:
Gateway Configuration Example:
Real Time Automation, Inc. 15 1-800-249-1612
Setting up the PLC- Example Using Simatic Step 7 software
This is how you would set up the Example Setup on the previous page using Simatic Step 7:
1. In your project, click the CPU and you should see the Hardware option in the right pane. Double click on the Hardware icon.
2. IF YOU HAVE ALREADY INSTALLED THE GSD FILE, SKIP TO STEP 9.
OTHERWISE - Under Options, select Install GSD Files.
3. Insert the CD that was shipped with the gateway and select Install GSD Files from the directory.
4. Browse to the CD and find the folder containing the GSD file.
5. Select the GSD file from the box and click Install.
6. When prompted to confirm installation because it cannot be undone, click Yes.
Real Time Automation, Inc. 16 1-800-249-1612
7. Click OK acknowledging that the install was successful.
8. If you navigate to the right-hand side, you will see the RTA profile under:
PROFINET IO->Additional Field Devices->I/O->460PSxx
9. IF YOU HAVE ALREADY CONFIGURED THE PROFINET I/O CONTROLLER, SKIP TO STEP 11.
10. In the properties window, set the IP Address to match that of the PROFINET I/O Controller and press New and OK.
OTHERWISE - Right-click on the PN-IO block and select Insert PROFINET IO System.
Real Time Automation, Inc. 17 1-800-249-1612
11. Find the RTA device in the I/O tree. It will be under PROFINET IO->Additional Field Devices->I/O
->460PSxx->port IO Device Conformance Test 1->Standard.
12. Once found, drag the Standard icon into the network line you created in Step 9.
Real Time Automation, Inc. 18 1-800-249-1612
13. Double-click the gateway icon to open the properties window. Make sure the Device Name field matches exactly (case-sensitive) to the Device Label field in the PROFINET IO Server
Configuration page. If not already done, uncheck the Assign IP Address via IO controller option
(some versions already do this) and press OK.
Real Time Automation, Inc. 19 1-800-249-1612
14. Expand the Standard node on the right panel to show the available modules to insert (Refer to the picture in Step 11).
To match the above configuration in the 460 gateway, add one 128-byte input module to slot 1, and one 128-byte output module to slot 11.
Siemens PLC Configuration:
Terminology Note and Example: I addresses refer to Input, Q address refer to Output, %B refer to bytes and %W refer to words. So in this case, you would use %IB0-7, %IB128-255 and %QB0-31 to access the data to/from our gateway in the PLC.
15. When finished, click the Save and Compile button and then the Download to PLC button.
Real Time Automation, Inc. 20 1-800-249-1612
Setting up the PLC- Example Using TIA Portal
This is how you would set up the Example Setup using Siemens TIA Portal:
1. In your project, click the Device View tab and click your PLC.
2. IF YOU HAVE ALREADY INSTALLED THE GSD FILE, SKIP TO STEP 9.
OTHERWISE - Under Options, select Manage general station description file (GSD).
3. Insert the CD that was shipped with the gateway and save off the GSD file on that CD to your desktop.
4. Click … and browse to where you saved the GSD file.
5. Check the box to the left of the imported path and click Install.
Real Time Automation, Inc. 21 1-800-249-1612
6. Click Close when it was installed successfully.
7. Click the Network View tab in your project.
8. Then navigate to the right-hand side of the screen under the Hardware catalog, you will see the RTA profile under:
Other field devices->PROFINET IO-> I/O->RTA Inc. ->
460PSxx->port IO Device Conformance Test 1 ->Standard
Real Time Automation, Inc. 22 1-800-249-1612
9. Drag the Port IO standard into the Network next to the PLC.
10. Once the RTA device is in the network click the Device view tab.
11. From the dropdown menu select ps01. Right click on the RTA device to select Properties.
12. Go down to the Ethernet addresses.
13. Be sure that the “IP address is set directly at the device” option is selected and uncheck the
“Generate PROFINET device name automatically.”
*Make sure the PROFINET Device Name field matches exactly (case-sensitive) to the Device
Label field in the PROFINET IO Server Configuration page.
*Make sure the PROFINET device and the gateway are on the same network.
Real Time Automation, Inc. 23 1-800-249-1612
14. Expand the Module list under the catalog on the right panel to show the available modules to insert into the device overview slots.
To match the above configuration in the 460 gateway, add one 128-byte input module to slot 1, and one 128-byte output module to slot 11.
TIA Portal Configuration:
To insert a module, just double click to add it to the next available slot.
Terminology Note and Example: I addresses refer to Input, Q address refer to Output, %B refer to bytes and %W refer to words. So in this case, you would use %IB1-8, %IB68-195 and %QB1-32 to access the data to/from our gateway in the PLC.
Real Time Automation, Inc. 24 1-800-249-1612
15. In the Network view tab, click the port of the RTA ps01 and drag the line into the port of the PLC. Once the link has been established click the Compile button and Download to Device button (in red).
16. Once everything is downloaded to the PLC there will be a green check box on both devices, then click on Go Online (see red box).
Real Time Automation, Inc. 25 1-800-249-1612
USB Ports Configuration
Click the USB Configuration button to access the primary USB configuration page.
There are two USB Ports available on the gateway.
2) Enable USB port: Each port can be enabled or disabled.
3) Translate Scancodes: Default state is checked. Most USB barcode readers behave like keyboards which send multiple codes to indicate the state of Control, Alt, Shift and other nonprinting keys. The majority of user will want to translate these messages into US ASCII.
USB Port LED Behavior
USB LED Status: Next to each USB port is a LED which signals the status of that USB port.
1) Off: No USB device detected.
2) Slowly Flashing Green (1Hz): Unsupported USB device connected.
- The gateway only supports Class 3 HID (Human Interface Device) and Class 7 Printer devices.
3) Solid Green: Supported USB device connected.
BI-LED Status:
1) Alternate Quick Flash Green (5Hz): If the 2 USB LEDs are alternating flashing green at a 5Hz rate, then the gateway is in Configuration Mode and the USB devices are not communicating to the gateway.
2) Simultaneous Flashing Green (5Hz): Fuse blown because of USB wiring problem.
3) 2 Second Green Blink: Printer Out-of-Paper
4) Repeating 2 Green Blink for 1 second, then off for 2 seconds: Printer Error (e.g. paper jammed, out of ink, etc.)
5) Alternate 1 sec Green Blink: Gateway is in configuration mode.
Real Time Automation, Inc. 26 1-800-249-1612
ASCII Configuration
Click the ASCII button to access the primary configuration page for this device.
1) To add an additional ASCII connection, click the Add ASCII Device button. This button will be grayed out if the max number of ASCII devices has already been configured. Repeat steps 2-5 for each device.
-To remove a device, click the Delete ASCII Device button.
-To copy parameters from a device you have already configured, select the device you wish to copy from in the Copy From dropdown menu. Then, click the Go button. Once copied, you can make any changes necessary.
2) The Enable check box should be selected for the device.
3) Port: Select which USB port is being used for communication. This port must be configured on the USB Configuration page. If it has not yet been configured, it will not display in this dropdown.
4) Enter a Device Label to identify the device within the gateway.
5) LED Inactivity Timeout: Enter the amount of time, in seconds, to wait before flashing the LED red indicating that no messages have been received or transmitted during this time.
Real Time Automation, Inc. 27 1-800-249-1612
Receive Data
This is configured to receive data from the ASCII device into the gateway.
Use the following fields to determine when a message has been received.
1. Enable: Check this box to move data from the ASCII device to the gateway.
2. Max Message Length: Enter the max number of characters that can be received by the gateway.
Example: Max Message Length is set to 5 and the message of "helloworld" was sent by the ASCII device. This will be sent to the other protocol as "hello" followed by "world" as two messages.
3. Receive Character Timeout: Enter the max amount of time (in ms) between characters that the gateway will wait before issuing a timeout and calling the message complete.
4. Number of Start Delimiters: Select the number of delimiters that the gateway should look for before the gateway processes the data.
5. Select Start Delimiters: Select the Start Delimiters that the gateway should look for.
6. Number of End Delimiters: Select the number of delimiters that the gateway should look for to call a message complete.
7. Select End Delimiters: Select the End Delimiters that the gateway should look for.
8. Remove Delimiters from ASCII Message: If checked, the gateway will remove all delimiters that have been configured before sending it to the other protocol.
9. ASCII Parsing (Optional): Additional parsing can be performed on the string before being passed to the other protocol. See the ASCII Parsing section for more information.
10. Gateway Hold Msg Timeout: Enter the amount of time (in ms) to wait before sending a new message to the other protocol.
11. Queue Full Behavior: Select which message to discard when the Queue is full. Once the Queue is full, the gateway will discard either the oldest or newest message (Only used if Gateway Hold
Msg Timeout is non-zero).
12. Queue Size: Select how many complete messages the gateway will hold before starting to discard (Only used if Gateway Hold Msg Timeout is non-zero).
Real Time Automation, Inc. 28 1-800-249-1612
Transmit Data
This is configured to transmit data from the gateway into the ASCII device.
Use the following setup fields to help the 460 transmit an ASCII message.
1. Enable: Check this box for moving data from the Gateway to the ASCII device.
2. Max Message Length: Enter the max number of characters that can be transmitted by the gateway.
3. Transmit Timeout: Enter the amount of time (in ms) that the gateway waits before sending an
ASCII message (0 Sends Immediately). If the data has changed before the time expires, the gateway immediately sends the message to the ASCII device.
4. Delay Between Messages: Enter the amount of time (in ms) that the gateway waits before verifying a Change of State of the ASCII message OR will start the Transmit Timeout.
5. Number of Start Delimiters: Select the number of delimiters that will be added onto the beginning of the ASCII string.
6. Select Start Delimiters: Select the Start Delimiters that should be added to the ASCII string.
7. Number of End Delimiters: Select the number of delimiters that will be added onto the end of the ASCII string.
8. Select End Delimiters: Select the End Delimiters that should be added to the ASCII string.
9. ASCII Concatenating (Optional): Additional concatenating can be performed on the string
before being written to the ASCII device. See the ASCII Configuration – ASCII Concatenating
section for more information.
Real Time Automation, Inc. 29 1-800-249-1612
Transmit Data – Triggering Methods
There are 3 methods that determine when the message is ready to be transmitted:
1) Change-Of-State – This means that when any of the data changes, the gateway will transmit a new ASCII message with the new data.
2) Cyclic – This means that every x ms a new ASCII message will be transmitted, regardless of whether or not the data has changed.
3) Trigger – This means that a trigger event determines when a new ASCII message will be transmitted.
Some methods can co-exist with others. Here are the rules:
- Change-Of-State is by default and can only exist by itself. This method is chosen if the
Transmit Timeout field is left at 0 and the Trigger Variables (as described in ASCII
Configuration – ASCII Message Triggering Method section of this manual) are not mapped.
- Cyclic and Trigger can co-exist. For this to happen, the Transmit Timeout field needs be to
nonzero and the Trigger Variables (as described in ASCII Configuration – ASCII Message
Triggering Method section of this manual) are also mapped.
Real Time Automation, Inc. 30 1-800-249-1612
ASCII Configuration – ASCII Message Triggering Method
This method allows the other protocol to signal when to send the next message using data handshakes.
These “signals” are controlled using data variables in our memory manager.
NOTE: These two data variables will need to be added manually to the Data Mapping webpage since it will not be mapped using Auto-Map. They are mapped just like the Status_XY variable described in the
Data Mapping- Adding Diagnostic Information section of this user guide.
While these two data variables are mapped, the Change-of-State method is disabled but messages can still be sent via the Cyclic method, if configured. For more information on the ASCII Triggering Methods,
please see the Transmit Data – Triggering Methods section of this user guide.
How the triggering method works:
The mating protocol sends a numbered value to the ASCII TransTrigger diagnostic variable. This value must be different from the previous value for a new message to be triggered.
Depending on the TransTrigger value, one of 4 things will occur:
1) If TransTrigger = 65535, then the triggering method is disabled.
2) If TransTrigger = 0, then the triggering method is enabled, but no message will transmit.
3) If TransTrigger is between 1-65534 AND the value IS equal to the TransHandshake diagnostic variable, then no new message will transmit.
4) If TransTrigger is between 1-65534 AND the value IS NOT equal to the TransHandshake diagnostic variable, then a new message will transmit. The value in TransTrigger will then be moved to TransHandshake.
The value of TransHandshake could be mapped back to the mating protocol for monitoring purposes.
Real Time Automation, Inc. 31 1-800-249-1612
Example: For the above example the other protocol in the gateway is the Allen-Bradley PLC. As you can see from the picture above, the TransTrigger for ASCII Device 1 is mapped to the PLC tag called
Trigger_Tag. If the value in Trigger_Tag is between 1-65534 AND is a different value that is currently stored in TransHandshake, then a new message will be transmitted to the ASCII device, the value of
TransTrigger will be copied to TransHandshake, and the value of TransHandshake will be written to the
PLC tag, Receive_tag.
Real Time Automation, Inc. 32 1-800-249-1612
ASCII Configuration – ASCII Parsing
Click the ASCII Parsing (Optional) button at the bottom of the ACII Configuration page to access the
ASCII Parsing Configuration page for this device.
1. Max Number of Fields: This indicates the max number of values the ASCII data can be parsed into (up to 50 values per message).
2. Min Number of Fields: This indicates the min number of values the ASCII data can be parsed into (up to 50 values per message). If the min number isn’t met, then it will be flagged an error.
3. Parsing Delimiter: This option is used if the fields of the ASCII message are separated by a single
Delimiter, such as a “,” character. If a single Delimiter does not separate the fields, select this field to be UNUSED and then use the character length fields below to parse the message.
4. Start Location & Length: a. If a Parsing Delimiter is used, the Start Location will be the first character of the data between the Delimiters. The Length will be the number of characters from the Start
Location to form the value. If the Length is 0, the gateway will read the entire parsed message from the Start Location to the next delimiter. b. If the Parsing Delimiter is unused, then the Start Location will be the first character of the entire message received. The Length will be the number of characters from the Start
Location to form the value. If the Length is 0, the gateway will read the entire parsed message from the Start Location to the end of the ASCII message.
5. Data Type: Select the data type of the parsed value.
6. Internal Tag Name: Enter a name to reference this tag within the gateway. This value is used on the display page and the mapping page.
Real Time Automation, Inc. 33 1-800-249-1612
ASCII Configuration – ASCII Parsing Examples
Example #1 - Parsing a message using the Parsing Delimiter option:
In this example, we are separating the fields in the string “12.25,SP100,temp setpoint” by a comma delimiter. The first value is being parsed into a float data type, while the second and third values are being parsed into a string data type. Since the Min Number of Fields is 3, all 3 fields must be present for the message to be considered valid and processed. The output is seen below:
Example #2 - Parsing a message without the Parsing Delimiter option:
In this example, we are separating the fields in the string “12.25,SP100,temp setpoint” using the start and length fields. The first value is being parsed from the 1 st float data type. The second value is being parsed from the 7
character for a length of 5 and stored into a th character of the entire ASCII message for a length of 5 characters and stored into a string data type. The third value is being parsed starting from the 13 th character for the rest of the remaining characters and stored into a string. The fourth value contains the entire ASCII message and is stored into a string. Only the first field needs to be present for the data to be considered valid and will be processed. If less than field 1 is present, the message will not be parsed and will be flagged an error. The output is seen below:
Real Time Automation, Inc. 34 1-800-249-1612
Example #3 - Parsing a message using the Parsing Delimiter option and Start Location and Length:
In this example, we are separating the fields in the string “12.25,SP100,temp setpoint” using the comma delimiter, the start, and length fields. The first value is being parsed from the 1 st character for a length of
2 and stored into an integer data type. The second value is being parsed from the 3 rd character of the second comma-parsed field for the remainder of that field and stored into an integer data type. The third value is being parsed starting from the 1 st character of the third comma-parsed field for that entire field and stored into a string. All 3 fields need to be present for the message to be valid. The output is seen below:
Real Time Automation, Inc. 35 1-800-249-1612
ASCII Configuration – ASCII Concatenating
The ASCII Concatenating features allows you to combine multiple data points and locations, in the mating protocol, into a single ASCII string. Click the ASCII Concatenating (Optional) button at the bottom of the ACII Configuration page to access the ASCII Concatenating Configuration page for this device.
1. Number of Fields: This indicates how many values will be concatenated together to form a single ASCII message (up to 50 values per message).
2. Concatenating Delimiter: This adds a delimiter between data fields in the ASCII string. If a delimiter should not appear between each of the fields, select UNUSED.
3. Data Type: Select the data type of the parsed value. a. Signed and Unsigned 8/16/32/64 Bit Integers b. 32/64 Bit Floating Points c. String – in order to use, a String data type must be selected in the other protocol.
Cannot concatenate an Integer to a String. d. Constant String
4. Internal Tag Name/Constant Name: a. If Data Type other than Constant String is selected, then this will be the name to reference this tag within the gateway. This value is used on the display page and the mapping page. b. If Data Type Constant String is selected, then this is the string value that will send.
5. Data Format:
a. %d – used for Signed Integers b. %u – used for Unsigned Integers
Real Time Automation, Inc. 36 1-800-249-1612
c. %lf – used for Floating Points with no set decimal precision d. %.1lf…%.6lf – used for Floating Points to show the offset of the decimal point value i. EX: 123.456789 set as %.3lf will display as 123.456 e. %e – used for Exponential Notation f. %x – used to represent Hexadecimal values for Signed/Unsigned Integers or Floating points g. String and Constant String Data Types do not use this field
6. Max Characters: This is the Max Number of Characters that can be transmitted for a single field.
Special Cases a. If set to 0, the entire field is transmitted. b. If the length of the value is less than the Max Characters, then the Padding Character will be used (if set). c. If the length of the value is greater than the Max Characters, then the value will be truncated.
7. Padding: If the length of the value is less than the Max Characters padding Zeroes, Spaces, or
Nothing to the remaining character placeholders. The padding will occur to the left of the value.
8. Add Delim: Used when a Concatenating Delimiter is selected. Check to add the Concatenating
Delimiter to the end of that field.
9. Sample Result: This will display an example of how the data will output. This will not display live data. It provides an example of the string structure.
NOTE: Sample Result field will only show the first 64 characters of the message. a. String data and Constant data types will display as x’s. b. Any other data type will display as i’s.
NOTE: For display purposes, if Max Characters is set to 0, only 10 characters will display for that field in the Sample Result section. The true value, if larger, will be processed correctly.
EX: Field 1 is set for a String data type and Max Characters is set to 0, only 10 x’s will display in the sample result even though the max character length is set to
50.
Real Time Automation, Inc. 37 1-800-249-1612
ASCII Configuration – ASCII Concatenating Examples
Example #1 - Concatenating a message using the Concatenating Delimiter option:
In this example, the comma is selected as the Concatenating Delimiter. Let’s look at each field closer:
- Field 1 –8 bit int represented as Trans_Field01 in the gateway. It will output as an integer with a max of 10 characters. No padding is used and a comma will be added to the end of the value. o
EX: “34,”
- Field 2 –16 bit int represented as Trans_Field02. It will output in Hexadecimal with a max of 10 characters, padded with zeros and no comma will be added to the end of the value. o
EX: “00000000A0”
- Field 3 –32 bit int represented as Trans_Field03. It will output as an integer with a max of 10 characters, padded with spaces and a comma will be added to the end of the value. o
EX: “____123456,” (shown with _’s to see spaces)
- Field 4 –32 bit float represented as Trans_Field04. It will output as a float with 2 decimal places with a max of 10 characters, padded with zeros and a comma will be added to the end of the value. o
EX: “00001234.56,”
- Field 5 –String represented as Trans_Field05 in the gateway. It will output as string with a max of
10 characters, padded with spaces and a comma will be added to the end of the value. o
EX: “___testing,” (shown with _’s to see spaces)
- Field 6 – Constant String will output as “RTA_MSG” with a max of 10 characters. No padding is used and no comma will be added to the end (though checked) since it is the last field. o
EX: “RTA_MSG”
Real Time Automation, Inc. 38 1-800-249-1612
If our Transmit Data is set up with the following Delimiters, then a sample result is pictured below:
Sample Result:
Real Time Automation, Inc. 39 1-800-249-1612
ASCII Configuration – Additional Variables
There is an additional ASCII variable that is very useful to access within the gateway’s mating protocol.
This data variable will need to be added manually per ASCII device since it will not be mapped using
Auto-Map.
ASCII Message Counter
RecvCount- indicates how many ASCII messages have been successfully read by our gateway for that device. A successful incoming message means that at least one of our three end cases (Max Length,
Timeout or Delimiters) have been met. This will match the Diagnostic Variable Successful Receive Count for each ASCII device.
This variable can be mapped to the mating protocol using the Data Mapping webpage. It is mapped just like the Status_XY variable described in the Data Mapping- Adding Diagnostic Information section of this user guide.
Example: For this example the other protocol in our gateway is the Allen-Bradley PLC. As you can see from the picture below, the RecvCount for ASCII Device 1 is mapped to the first index of a PLC tag array called test_cnt. The data type of this tag is an Int32 to match the data type of RecvCount. The tag test_cnt[0] will now hold the number of successfully read messages from ASCII Device 1.
Application Use: This is particularly useful for application connecting devices like barcode scanners and weigh scales. The gateway will cyclically update the mating protocol with the last ASCII message sent, a change in the RecvCount is the only way to identify a new message if the messages are identical.
Printer Port Status
UsbStatus- indicates if there are any printer errors like paper empty when dealing with USB printer devices (Class 7 only). This Status will match the USB Port 0/1 Status on the diagnostics page and main page for each USB device connected to a printer.
This variable can be mapped to the mating protocol using the Data Mapping webpage. It is mapped just like the Status_XY variable described in the Data Mapping- Adding Diagnostic Information section of this user guide.
Real Time Automation, Inc. 40 1-800-249-1612
Example: For this example the other protocol in the gateway is the Allen-Bradley PLC. As you can see from the picture below, the UsbStatus for ASCII Device 1 is mapped to a PLC tag called USB_Status. The data type of this tag is an Int32 to match the data type of UsbStatus. The tag USB_Status will now hold the printer status of ASCII Device 1.
Application Use: This is particularly useful if you wish to see the printer status from the other protocol connected to the gateway.
Real Time Automation, Inc. 41 1-800-249-1612
Mapping - Transferring Data Between Devices
There are 5 ways to move data from one protocol to the other. You can combine any of the following options to customize your gateway as needed.
Option 1 – Data Auto-Map: The gateway will automatically take the data type (excluding strings) from one protocol and look for the same data type defined in the other protocol. If there isn’t a matching data type, the gateway will map the data to the largest available data type. See Data Auto-Map section for more details.
Option 2 – String Auto-Map: The gateway will automatically take the string data type from one protocol and map it into the other. See String Auto-Map section for more details.
Option 3 – Manual Map: If you don’t want to use the Auto-Map function, you must use the manual mapping feature to configure translations.
Option 4 – Manipulation/Scaling: You can customize your data by using math operations, scaling, or bit manipulation. See Data Mapping-Explanation section for more details.
Option 5 – Move Diagnostic Information: You can manually move diagnostic information from the gateway to either protocol. Diagnostic Information is not mapped in Auto-Map mode. See Diagnostic
Info section for more details.
Real Time Automation, Inc. 42 1-800-249-1612
Display Mapping and Values
The Display Data and Display String pages are where you can view the actual data for each mapping that is set up.
Display Data
Click the Display Data button to view how the data is mapped and what the values of each mapping are.
Here you will see how each data point (excluding strings) is mapped. To view, select the device from the dropdown menu and click View to generate the information regarding that device. Then select either the Protocol 1 to Protocol 2 or Protocol 2 to Protocol 1 button, correlating to the direction you wish to see the data.
This page is very useful when verifying that all data is mapped somehow from one protocol to another.
If a data point is not mapped, it will display on this page in a yellow highlighted box.
In the above example, we see the following:
• Modbus 400001 from Slave 1 is being mapped to AI1 on BACnet
• Nothing is being moved from Modbus to AI2 on BACnet
• Modbus 400030 from Slave 1 is being mapped to AI3 on BACnet
NOTE: If a data point is mapped twice, only the first instance of it will show here. EX: If Modbus 400001
& 400040 from Slave 1 are both mapped to AI1, only 400001 will show as being mapped to AI1.
Real Time Automation, Inc. 43 1-800-249-1612
If there are values of “- -“ on this page, it indicates that the source has not yet been validated and no data is being sent to the destination.
The example below reflects the Modbus to PLC flow of data. The Modbus (right side) is the source and the PLC (left side) is the destination.
• The 460 gateway has received valid responses from Modbus registers 400001-400005 and therefore can pass the data on to the PLC tag called MC2PLC_INT.
• The 460 gateway has NOT received valid responses from Modbus register 400011 & 400012. As a result, the data cannot be passed to the PLC tag ETC01_GN0_INT2 and indicates so by using
“- -“ in the value column of the table.
To view the actual data mappings, click the Edit Mapping button. For more details, see the Data
Mapping-Explanation section.
To view the data mappings purely as text, click the View as Text button. For more details, see the View
Data Mapping as Text section.
Real Time Automation, Inc. 44 1-800-249-1612
Display String
Click the Display String button to view how the string data types are mapped and what the values of each string are. Here you will see how each string from each protocol is mapped to the other. To view, select the source or destination group and the String from the dropdown menu to generate the information regarding that device. The string data will be displayed in both hex and ASCII.
If there are values of “Data Not Valid“ on this page, it indicates that the source has not been validated yet and no data is being sent to the destination.
In the example below, this page reflects the Modbus to PLC flow of data. Since the Destination “Dst:
ETC01 ETC01_G2N0_STRING” displays “Data Not Valid”, it can be assumed that the source field has not yet been validated.
To view the string mappings, click the Edit Mapping button. For more details see the String Mapping-
Explanation section.
To view the string mappings purely as text, click the View as Text button. For more details see the View
String Mapping as Text section.
Real Time Automation, Inc. 45 1-800-249-1612
Data and String Mapping – Auto-Map
The Auto-Map function looks at both of the protocols and will map the data between the two protocols as best as it can so that all data is mapped. Inputs of like data types will map to outputs of the other protocols like data types first. If a matching data type cannot be found, then the largest available data type will be used. Only when there is no other option is data truncated and mapped into a smaller data type.
If the Auto-Map function does not map the data as you want or you want to add/modify the mappings, you may do so by going into Manual-Map mode.
The following are examples of the Auto-Map function.
1) This example shows a common valid setup. a. Both Source values were able to be mapped to a corresponding Destination value.
2) This example shows how Auto-Map will make its best guess. a. The 32-bit Float from the Source location could not find a matching Destination data-type. After all other like data types were mapped, the only data type available was the 2 nd 32-bit Uint data type. Auto-Map was completed even though the data in the Float will be truncated.
Real Time Automation, Inc. 46 1-800-249-1612
Data Mapping – Explanation
Below are the different parts that can be modified to make up a data mapping.
1. Enable (red box above): Check to enable mapping. If not checked, this mapping is skipped.
2. Source Field (yellow box above) : a. Group - Select the data group you set up in the protocol config to use for this mapping. b. Start - This is the starting point for this mapping. c. End - This is the final point to be included for this mapping.
3. Manipulation Area (green box above) : a. Enable the Data Manipulation. This can be enabled for any mapping. b. Click Add Math Operation for each operation needed. Up to 3 are allowed unless you are using the Scale, Set Bit, or Invert Bit functions. If using Scale, Set Bit, or Invert Bit, then only 1 operation is allowed. c. Select the Operation(s) to perform. i. Math Operations are preformed in the order they are selected. ii. If more than one point is selected on the source, the Math Operations will be performed on every point. d. Enter the value(s) for the operation.
Example of Add (similar for Subtract,
Multiple, Divide, and MOD). This will add a value of 10 to the source field before it is written to the destination field.
Example of Scale. This will scale the source values from 1-
10 into 1-100 for the destination.
Example of Set Bit (similar to Invert
Bit). This will take the value of the
0 th source bit and copy it into the value of the 5 th
destination bit.
4. Destination Field (blue box above) : a. Group - Select the data group you set up in the protocol config to use for this mapping. b. Start - This is the starting point for where the data is being stored. c. End - The End point is derived from the length of the source and cannot be modified.
Real Time Automation, Inc. 47 1-800-249-1612
Data Mapping – Adding Diagnostic Information
Data Mapping offers 5 different types of information in addition to any scan lines specified for each protocol.
IMPORTANT NOTE: Only add Diagnostic Information AFTER both sides of the gateway have been configured. If changes to either protocol are made after diagnostic information has been added to the mapping table, it is necessary to verify all mappings. Remapping may be necessary.
1. Temporary Ram (Int 64) a. This offers five levels of 64bit Integer space to assist in multiple stages of math operations. For example, you may wish to scale and then add 5. You can set up a single translation to scale with the destination as the temporary ram. Then another translation to add 5 with the source as the temporary ram. b. The gateway will automatically convert the Source to fit the Destination, so there is no need for Int 8, 16, 32 since the 64 may be used for any case.
In this example, Ram0 is scaled into Ram1. Ram1 is then increased by 5 and stored into Ram2.
Ram0 and Ram2 could be considered a source or destination group.
2. Temporary Ram (Double) a. This is similar to the Temporary Ram (Int 64), except manipulations will be conducted against the 64bit floating point to allow for large data.
3. Ticks Per Second a. The gateway operates at 200 ticks per second. This equates to one tick every 5ms. Thus, mapping this to a destination will give easy confirmation of data flow without involving one of the two protocols.
4. XY_NetBmpStat a. If a protocol is a Client/Master, there is a Network Bitmap Status that is provided. Since a Client/Master may be trying to communicate with multiple devices on the network, it
Real Time Automation, Inc. 48 1-800-249-1612
may be beneficial to know if a Server/Slave device is down. By using this Network
Bitmap Status you can expose the connection statuses of individual devices. b. 0x00000002 shows that only device 2 is connected c. 0x00000003 shows that only devices 1 and 2 are connected d. 0x00000004 shows that only device 3 is connected
5. Status_XY a. There are two Statuses provided, one for each protocol. This gives access to the overall status of that Protocol. Each Bit has its own meaning as follows:
Common Status: 0x000000FF (bit 0-7)1 st
byte
Hex: Bit Position: Decimal: Explanation:
0x00 0
0x01 0
0x02 1
0
1 if we are a Slave/Server if we are a Master/Client
2 connected (0 not connected)
0x04 2 4 first time scan
0x08 3 8 idle (usually added to connected)
0x10 4 16 running (usually added to connected)
0x20 5 32 bit not used
0x40 6 64 recoverable fault
0x80 7 128 nonrecoverable fault
For this example the ETC Status is mapped to a PLC tag called PLC_Status
Example: ETC Status is 0x00000013 (19 decimal), here is the break down
Hex Bit Decimal
0x01 0(on) 1
0x02 1(on) 2
0x10 4(on) 16
Total: 0x13 19
Explanation if we are a Master/Client connected (0 not connected) running (usually added to connected)
External Faults: 0x0000FF00 (bit 8-15)2 nd
byte
Hex: Bit Position: Decimal: Explanation:
0x00 8
0x01 8
0x02 9
0x04 10
0x08 11
0
256
512
1,024
2,048 local control remotely idle remotely faulted idle due to dependency faulted due to dependency
Real Time Automation, Inc. 49 1-800-249-1612
Recoverable Faults: 0x00FF0000 (bit 16-23)3 rd
byte
Hex: Bit Position: Decimal: Explanation:
0x01 16
0x02 17
65,536
131,072 recoverable fault - timed out recoverable fault - Slave err
Non-Recoverable Faults 0xFF000000 (bit 24-31)4 th
byte
Hex: Bit Position: Decimal: Explanation:
0x01 24 16,777,216 nonrecoverable fault –
task fatal err
0x02 25 33,554,432 nonrecoverable fault –
config missing
0x04 26 67,108,864 nonrecoverable fault –
bad hardware port
0x08 27 134,217,728 nonrecoverable fault –
config err
0x10
0x20
28 268,435,456 Configuration Mode
29 536,870,912 No Ethernet Cable Plugged In
For this example the MC Status is mapped to a PLC tag called MC_Status
Example: MC Status is 0x00010041 (65601 decimal), here is the break down, we know that bytes 1 and 3 are being used, so here is the break down,
Common Status:
Hex: Bit: Decimal:
0x01 0(on)
0x40 6(on)
1
64
Explanation: if we are a Master/Client recoverable fault
Recoverable Faults:
Hex: Bit: Decimal: Explanation:
0x01 16
65,536 recoverable fault – timed
Total: 0x010041 65,601
Real Time Automation, Inc. 50 1-800-249-1612
String Mapping – Explanation
Below are the different parts that can be modified to make up a string mapping.
String data types can only be mapped to other string data types. There is no manipulation that can be done on the string.
1. Enable (red box above): Check to enable mapping. If not checked, this mapping is skipped.
2. Source Field (yellow box above) : a. Group - Select the string data group you set up in the protocol config to use for this mapping. b. String - This is the string used for this mapping.
3. Destination Field (green box above) : a. Group - Select the string data group you set up in the protocol config to use for this mapping. b. String - This is the string where the data is being stored.
Real Time Automation, Inc. 51 1-800-249-1612
Mapping – Auto-Map Mode to Manual-Map Mode
To transition from Auto-Map mode to Manual-Map mode, click the Edit Mapping button. After you click this button, you will be prompted to confirm if this is really what you want to do.
Click OK to proceed to Manual Map mode or click Cancel to remain in Auto-Map mode.
There are 2 options on how to proceed from here.
1) To keep the mappings that are already configured press OK. a. You would want this option if you are adding additional mappings or you want to modify the mapping(s) that already exist.
2) To delete the mappings that are already there and start over press Cancel.
To modify the number of mappings, enter a number next to # of Mappings to Configure and click the
Set Max # of Mappings button. You can always add more mappings if needed.
Real Time Automation, Inc. 52 1-800-249-1612
Mapping – Manual-Map Mode to Auto-Map Mode
To transition from Manual-Map mode to Auto-Map mode, click the Auto Map Mode button. After you click this button, you will be prompted to confirm if this is really what you want to do.
Click OK to proceed to delete all current mappings and go to Auto-Map mode. Click Cancel to keep all mappings and remain in Manual-Map mode.
NOTE: Once you revert back to Auto-Map mode there is no way to recover the mappings you lost. Any mappings you added will be deleted as well.
Real Time Automation, Inc. 53 1-800-249-1612
View Data Mapping as Text
The View as Text page displays the point to point mapping(s) you set up in the Data Mapping section.
This will also display any manipulation(s) that are configured.
Each line on this page will read as follows:
Mapping number
:
source point Len: Number of points mapped
->
manipulation (if blank then
no manipulation)
->
destination point
If you are looking for a specific point to see if it is mapped, you can do a find in this text box for your point in question. Example: you defined 20 Registers starting at register 1 and want to see if 400011 is mapped. If it is not in this text box then it is not mapped and no data will be transferred.
This is the text display for the example shown under the Data Mapping- Adding Diagnostic Information section.
Real Time Automation, Inc. 54 1-800-249-1612
View String Mapping as Text
The View as Text page displays the string mapping(s) you set up in the String Mapping section.
Each line on this page will read as follows:
Mapping number
:
source point
->
Copy
->
destination point
If you are looking for a specific point to see if it is mapped, you can do a find in this text box for your point in question. Example: you defined 20 String Tags in the PLC and want to see if “Test_String” in the
Logix PLC is mapped. If it is not in this text box, then it is not mapped, and no data will be transferred.
Real Time Automation, Inc. 55 1-800-249-1612
Security Configuration
You can configure Security for 3 administrators, 5 users, and 1 guest.
THIS IS NOT A TOTAL SECURITY FEATURE
The security feature offers a way to password protect access to diagnostics and configuration on the network. The security feature does not protect against “Air Gap” threats. If the gateway can be physically accessed, security can be reset. All security can be disabled if physical contact can be made. From the login page, you would click the Reset Password button twice and be forced to do a hard reboot (power down) on the gateway within 15 minutes of clicking the button. This process should be used in the event a password is forgotten.
Note: Only Admins have configuration access to all web pages.
1. Log Out Timer: The system will automatically log inactive users off after this period of time.
NOTE: A time of 0 means that the user will not be automatically logged off. Instead, they must manually click the “Logout” button.
2. Username: Enter a username, max of 32 characters.
3. Password: Enter a password for the username, max of 32 characters, case sensitive. a. Re-enter the Password
4. E-mail: In case the password was forgotten, a user can have their password e-mailed to them if e-mail was configured.
5. Hint: A helpful reminder of what the password is.
Real Time Automation, Inc. 56 1-800-249-1612
Security Configuration-Security Levels
Each webpage in the gateway can have a separate security level associated with it for each user.
Security Levels:
1. Full Access: Capability to view and configure a web page.
2. View Access: Capability to view a web page, but cannot configure parameters.
3. No Access: No capability of viewing the web page and page will be removed from Navigation.
Real Time Automation, Inc. 57 1-800-249-1612
Security - Log In
Username: Name of the user to login.
Password: Password of the user to login.
Log In: If login is successful, the user will be redirected to the Main Page.
Send Password to Email: Sends the specified User’s Password to the email configured for that user.
Display Hint: Displays the hint specified for the User if one was set up.
Reset Password: This is used to reset security settings. Confirm reset password must be selected to confirm this action. Once confirmed, there is a 15 minute window to do a hard reset of the gateway by physically removing and restoring power from the gateway. Once power is restored, you may navigate to the IP address of the gateway as normal.
Real Time Automation, Inc. 58 1-800-249-1612
Security - Log Out
Once a user is done with a session they may click logout at the top of any page. The user may also be logged out for inactivity based off of the Log Out Timer specified during the configuration.
Closing the browser is not sufficient to log out.
Real Time Automation, Inc. 59 1-800-249-1612
Email Configuration
You can configure up to 10 email addresses.
1. SMTP Mail Username: The email address that the smtp server has set up to use.
2. SMTP Mail Password: If authentication is required, enter the smtp Server’s password (Optional).
3. SMTP Server: Enter the Name of the SMTP Server or the IP Address of the Server.
4. From E-mail: Enter the e-mail that will show up as the sender.
5. To E-mail: Enter the e-mail that is to receive the e-mail.
6. E-mail Group: Choose a group for the user. This is used in other web pages.
Click the Save Parameters button to commit the changes and reboot the gateway.
Real Time Automation, Inc. 60 1-800-249-1612
Alarm Configuration
1. Alarm Delay upon Powerup: At Powerup, the gateway will have values of ‘0’ stored for all data.
This may cause alarms to trigger before these values are updated by the mating protocols. Set this field to provide needed time to update fields before considering values for alarms.
2. Enter the number of alarms to configure and click Set Max # Alarms to generate those lines.
3. In the Data Point Section: a. Top dropdown: select the Data Group. This dropdown menu will contain all groups that go from the gateway to the network. b. Lower dropdown: select the Data Point’s Specific Point. This is used to select which point in the group will be monitored for alarms.
4. In the Set Error Section: a. Select the Set Error Operation in the top dropdown menu. Available options are <, >, <=,
>=, !=, ==, and Change of State (COS). This is the operation that will be used to compare the Data Point value against the Error Value to determine if the alarm needs to be set. b. Select the Set Error Value. This value is used as: ‘Data Point’s Value’ ‘Operation’ ‘Value.’
Ex: Ticks Since Powerup >= 1000. This will set the alarm after 1000 ticks have elapsed since the unit powered up.
Real Time Automation, Inc. 61 1-800-249-1612
5. In the Clear Error Section: a. Select the Clear Error Operation. Available options are <, >, <=, >=, !=, ==, and Change of
State (COS). This is the operation that will be used to compare the Data Point value against the Error Value to determine if the alarm needs to be cleared. b. Select the Clear Error Value.
-Ex: Ticks Since Powerup >= 5000. This will clear the alarm after 5000 ticks have elapsed since the unit powered up.
6. Enter an Alarm Name. This will make the alarm unique and will be available in the Alarm Status page as well as in the email generated by the alarm.
7. Select an email to associate this alarm with. When an alarm is set, it sends an email. When an alarm is cleared, it will also send an email.
Click the Save Parameters button to commit the changes to memory and reboot the gateway.
Real Time Automation, Inc. 62 1-800-249-1612
Diagnostics – Alarm Status
Alarm Status will only display under the Diagnostic menu tab if at least 1 Alarm is enabled.
1. # Alarms Enabled: This is a count of enabled alarms.
2. # Alarms Active: This is how many alarms are presently active (set).
3. Last Active Alarm: This is the last alarm that the gateway detected.
4. Clear # of Times Active: This will reset all alarms ‘# of Times Active’ to 0.
5. Alarm #: The reference number to the given alarm on the alarm setup page.
6. Name: The name of the alarm.
7. Status: The current status of the alarm, either OK or ALARM.
8. # of Times Active: This count represents the number of times this alarm has become active. If an alarm is triggered, this count will increment.
Alarms – Active
While one or more alarms are active, every page will display ‘Alarms Active’ at the top of the page. This will no longer be displayed if all active alarms have been cleared.
When an alarm is activated, the following will occur:
1. A one-time notification will be sent out to the email associated with the alarm. a. For duplicate emails to occur, the alarm must be cleared and then become active again.
2. # Alarms Active and # of Times Active will be incremented.
3. Status of the Individual Alarm will be set to Alarm.
4. Last Active Alarm field will be populated with details on what triggered the alarm.
Real Time Automation, Inc. 63 1-800-249-1612
Alarms – Clear
When an alarm is cleared, the following will occur:
1. A one-time notification will be sent to the email associated with the alarm. a. For duplicate emails to occur, the alarm must become active and then be cleared again.
2. Total # Alarms Active will decrement. Last Active Alarm will not be changed.
3. Status of the Individual Alarm will be reset to OK.
Real Time Automation, Inc. 64 1-800-249-1612
Change of State (COS) Configuration
The gateway, by default only writes when data has changed. The gateway also waits to write any data to the destination until the source protocol is successfully connected.
Default values should fit most applications. Change these values with caution as they affect performance.
1. Stale Data Timer: If the data has not changed within the time allocated in this Stale Data Timer, the data will be marked as stale within the gateway and will force a write request to occur. This timer is to be used to force cyclic updates in the gateway, since data will only be written if it has changed by default. There is a separate timer per data mapping.
Gateway behavior:
If time = 0s => (DEFAULT) The gateway will write out new values on a Change of State basis.
If time > 0s => The gateway will write out new values whenever the timer expires to force Cyclic updates (write every x seconds).
2. Production Inhibit Timer: Amount of time after a Change of State write request has occurred before allowing a new Change of State to be written. This is to be used to prevent jitter. Default value is 0ms. This timer takes priority over the Stale Data Timer. There is a separate timer per data mapping. This timer is active only after the first write goes out and the first COS event occurs.
3. Writes Before Reads: If multiple writes are queued, execute # of Writes Before Reads before the next read occurs. Default is 10 and should fit most applications. Warning: A value of 0 here may starve reads if a lot of writes are queued. This may be useful in applications where a burst of writes may occur and you want to guarantee they all go out before the next set of reads begin.
4. Reads Before Writes: If multiple writes are queued, the # of Writes Before Reads will occur before starting the # of Reads Before Writes. Once the # of Reads Before Writes has occurred, the counter for both reads and write will be reset. Default is 1 and should fit most applications.
5. Enable Data Integrity: If enabled, do not execute any write requests to the destination until the source data point is connected and communicating. This prevents writes of 0 upon power up.
Click the Save Parameters button to commit the changes to memory and reboot the gateway.
Real Time Automation, Inc. 65 1-800-249-1612
Diagnostics Info
The Diagnostic page is where you will be able view the gateway’s translations and protocol specific status information.
For protocol specific diagnostic information, refer to the next three pages.
Diagnostics – Data and String Mapping
The Diagnostics->Diagnostic Info->System section displays the number of translations that are enabled, for both Data and String data types, the number of mappings that have an error, and the first mapping that has an error.
# Enabled: Number of mappings that are enabled.
# Error: The number of mappings that are enabled that have an error.
First Error: This is a detailed description of the first mapping that has an error.
Common Errors:
1. Destination or Source Point does not exist
-Solution: Re-map the mapping
2. Source or Destination Pointer too small
- There is not enough space on either the Source, or the Destination for the data you want to copy. This is typically seen when the Destination is smaller than the amount of data being transferred to it.
3. Range Discard, Min or Max Value
- The actual data value is outside of the defined range
4. Math Error
- Operation value cannot be 0
5. Scaling Error
- Source Min must be smaller than Source Max
- Destination Min must be smaller than Destination Max
Real Time Automation, Inc. 66 1-800-249-1612
Diagnostics – PROFINET IO Server
Select the PROFINET IO Server in the dropdown menu on the Diagnostic page to view a breakdown of the diagnostics and common strings that are displayed on the page. Additional diagnostic information can be found by clicking the Help button.
Clear All Values - This will only affect Displayed Values.
1. This will return all values displayed to 0.
2. If viewing PROFINET IO Server, this will only clear the values for the PROFINET IO Server section of the gateway.
Device Status
1. Connected - A PROFINET IO Controller has a connection for the gateway.
2. Not Connected: a. The PROFINET IO Controller has not opened up communication to the gateway. b. The PROFINET IO Server has an invalid configuration or no parameters configured.
Real Time Automation, Inc. 67 1-800-249-1612
LED Status:
1. Good Communication (Solid Green) – Connected to a PROFINET IO Controller and Online.
2. Not Connected (Flashing Green) – Configured but no PROFINET IO Connection was established.
3. Fatal Error (Solid Red) – a. Invalid Configuration due to no input/output slots configured within the gateway
4. Connection Timeout (Flashing Red) – a. PROFINET IO Controller’s slot configuration doesn’t match the gateway’s slot configuration b. PROFINET IO Controller was communicating to the gateway and is no longer communicating
5. No Ethernet cable plugged in (Off)
Variables:
1. Parameters Read: Rollover counter for the number of parameters read by the IO Controller.
2. Parameters Written: Rollover counter for the number of parameters written by the IO
Controller.
3. PN Ethernet Pkts Rcvd: Rollover counter for the number of PROFINET Ethernet packets received.
4. PN Ethernet Pkts Sent: Rollover counter for the number of PROFINET Ethernet packets sent.
5. UDP Pkts Rcvd: Rollover counter for the number of PROFINET UDP packets received.
6. UDP Pkts Sent: Rollover counter for the number of PROFINET UDP packets sent.
7. OutData Pkts Rcvd: Rollover counter for the number of PROFINET IO cyclic data packets transmitted and/or received.
8. Connection Timeouts: Rollover counter for the number of connection timeouts between the gateway and the IO Controller. If this counter is incrementing, check the Ethernet connection and verify the gateway is in the IO Controller.
Real Time Automation, Inc. 68 1-800-249-1612
Diagnostics – ASCII
Select ASCII in the top dropdown menu on the Diagnostic page to view a breakdown of the diagnostics that are displayed on the page. You may also view individual ASCII device counters and messages by selecting the device in the All ASCII dropdown menu and clicking View. Additional diagnostic information can be found by clicking the Help button.
Clear All Values - This will only affect current displayed values.
1. This will return all values displayed to 0 and clear the Status Strings.
Example: If Viewing ASCII – Port 0, this will only clear the values for Port 0. This will reduce the All
ASCII values indirectly.
Clear Buffers - This will clear the Next Message to Send from Queue buffer and Current Message being
Received from ASCII buffer and any message stored in the Queue.
Device Status - This will only display when viewing All ASCII.
1. Connected and Running– The gateway is connected to all of the ASCII devices and data is being received/transmitted.
2. Not Connected – There have been no messages received or transmitted. a) Verify that the serial / TCP/IP / USB settings match your device.
Real Time Automation, Inc. 69 1-800-249-1612
3. Fatal Error: Hardware Port Not Configured – The port selected on the ASCII Configuration page is not configured. a) Verify the ASCII device is enabled and configured. b) Verify the port configured matches the port enabled.
LED Status - This is the Status for All ASCII or the specific ASCII device selected.
1. Solid Green (Connected)– The gateway is receiving/transmitting data within the Inactivity period for all of the ASCII devices that are configured and enabled.
2. Flashing Green (Not Connected) – No messages have been received or transmitted.
3. Flashing Red (Connection Timeout) – The only way to get out of this state is with a valid received message. a. Data has been discarded due to the queue being full. b. Data has not been received/transmitted within the Inactivity period.
Variables - These are the values for All ASCII or the ASCII device selected.
Successful Transmit Count:
-Number of Messages that the gateway has transmitted to the ASCII device
Successful Receive Count:
-Number of Complete Messages that the gateway has received from the ASCII device
Received due to Length:
-Number of Messages Completed due to the Max Message Length being reached
Received due to Delimiters:
-Number of Messages Completed due to the Start or End Delimiters being seen
Received due to Timeout:
-Number of Messages Completed due to the Receive Character Timeout being reached
Received but Discarded:
-Number of Messages that are Complete but discarded due to the Queue being full
-Change the Gateway Hold Msg Timeout to be less than what you currently have set
Successful Parsed Messages:
-Number of Messages that are Complete and have been successfully parsed
Failed Parsed Messages:
-Number of Messages that are Complete but have not been parsed successfully
Status Strings - These are the values for All ASCII or the ASCII device selected.
Queued Messages:
-The Gateway will hold up to 20 (configurable) complete messages to send to the other protocol
-This will only increment if the Gateway Hold Msg Timeout is non-zero and messages are being received faster than we can send to the other protocol
Last Parsed Error:
-Last parsed error the gateway encountered
Common Error Messages:
1. Number of Fields Invalid: The total number of parsed fields is greater than the number of fields the gateway was expecting
2. Discard: The Field has been discarded
3. Invalid Length for Field: Number of characters parsed is greater than the number of characters that the gateway is expecting
Real Time Automation, Inc. 70 1-800-249-1612
7
2
3
0
1
4
5
6
4. Calculated Length of Data exceeds 255 Characters: Number of characters parsed within a field exceeds 255 characters
USB Port 0/1 Status:
-Status of the 2 USB ports.
-Our gateway supports Class 3 (HID Devices) and Class 7 (Printers) only.
Common Messages:
1. Not Connected, No USB device detected
2. HID Device Connected
3. Unsupported HID Device
4. Error-Missing Device Info
5. Unknown HID Error
6. Unsupported USB Class XX
7. (Printer Devices Only) Printer: Error Check Printer, Not Selected, Paper
Available/Paper Empty
8. (Printer Devices Only) Printer: No Error, Selected, Paper Available
NOTE: Some USB printers may not always be able to determine this information. In this case, they should return benign status of “Paper Not Empty”, “Selected” and “No Error”.
Printer Port Status:
- Printer: Error Check Printer, Not Selected, Paper Available/Paper Empty
- Printer: No Error, Selected, Paper Available
Printer Port Status – used when Printer device is connected
Bit
Reserved
Reserved
Reserved
Not Error
Meaning
Select
Paper Empty
Reserved
Notes
Reserved for future use – currently returns 0
Reserved for future use – currently returns 0
Reserved for future use – currently returns 0
1 = No error, 0 = Error
1 = Selected, 0 = Not Selected
1 = Paper empty, 0 = Paper not empty
Reserved for future use
Reserved Reserved for future use
Real Time Automation, Inc. 71 1-800-249-1612
Buffers
Each buffer text area is divided into 3 separate parts. Refer to screenshot above for labels.
1) Starting byte for that line
2) HEX character representation
3) ASCII character representation
Note: Unprintable ASCII characters (like <CR>) will be displayed as ‘.’ on the right hand side of the buffer area.
Last Message Sent:
-Last Complete Message the gateway received from the ASCII device, processed, and sent to the other protocol
Next Message to Send from Queue:
-This is the Next Complete Message that the gateway has already received and processed from the ASCII device, and will be sent next to the other protocol
Current Message being Received from ASCII:
-The Current data that the gateway is receiving
-Need to hit one of the three end cases to call a message complete
Real Time Automation, Inc. 72 1-800-249-1612
1. Max Message Length (max number of characters to receive)
2. Receive Character Timeout (max time to wait after a character to call the current message complete)
3. Delimiters (gateway has not received the delimiters that are specified)
Last Message Sent to ASCII:
-Last Message that the gateway sent to the ASCII device
Note: The concatenated delimiters are not displayed in this message but will be transmitted with the message
Send Data from Gateway to ASCII (Used for Testing Only):
-Enter a message to send to your ASCII device
-Can be used to test communication and test formatting of messages.
Real Time Automation, Inc. 73 1-800-249-1612
LED Configuration
To modify the behavior of the LEDs on the 460 gateway, navigate to Other->Setup LEDs.
The LED Configuration page lets you configure the LEDs on the gateway.
Each LED may be set to Disabled, Protocol 1, or Protocol 2. If either Protocol is a Master/Client, you may set the LED to represent either all Slaves/Servers configured in our gateway or a particular Slave/Server device.
To select a particular Slave/Server device: a) Select the protocol in the left dropdown menu. b) Click Save Parameters to generate the second dropdown menu. c) Select the individual Slave/Server in the right dropdown menu.
Click the Save Parameters button to commit the changes and reboot the gateway.
LED 1 is the LED closest to the Ethernet port on the gateway device.
Real Time Automation, Inc. 74 1-800-249-1612
Configuration Files
To access the configuration files in the 460 gateway, navigate to other->Export/Import Config.
Export Configuration
The export tool allows you to save your gateway configuration for backup or to be exported into another gateway. This file is named rta_cfg.rtax by default. Network settings will not be saved in this configuration since they must be unique for each gateway.
Upon clicking the Save Configuration to File button, you will be prompted to select a location to save the file.
Import Configuration
You can import a previously exported configuration file or a configuration file from another device into the 460 gateway whenever it is in Configuration Mode.
Upon clicking the Choose File button, you will be prompted to select a location from which to load the saved file. Once the location is selected, click the Load Configuration button.
If it has successfully loaded, the gateway will indicate that it was successful and a message will appear under the Load Configuration button indicating you should reboot the gateway.
If it encountered an error while trying to load the saved configuration, the gateway will indicate the first error it found and a brief description about it under the Load Configuration button. The configuration file is xml and can be modified with any text editor. Once that error is fixed, try loading again until it is successful.
Real Time Automation, Inc. 75 1-800-249-1612
Utilities
The Utilities screen displays information about the gateway including Operation Time, File System
Usage, Memory Usage, and Memory Block Usage.
Here you can also:
• View the Revisions of the Software for each Stack.
• View all of the Flash Files within the gateway.
• Identify your device by clicking the Start Flashing LED’s button. By clicking this button, the two diagnostic LED’s will flash red and green. Once you have identified which device you are working with, click the button again to put the LED’s back into running mode.
• Configure the size of the Log through the Log Configuration.
• Remove the Configuration File and Flash Files within the gateway (the gateway needs to be rebooted 2 times).
• Bring the device back to its last power up settings.
•
Bring the device back to its original manufacturing defaults (the Gateway needs to be rebooted
2 times).
Real Time Automation, Inc. 76 1-800-249-1612
Completing the Installation
You have now set up your gateway for communication and are ready to place the device in your application.
Support for your device is available any time.
Toll free: 800-249-1612
Email: [email protected]
Real Time Automation, Inc. 77 1-800-249-1612
advertisement
Key Features
- Connects PROFINET I/O Controller to 2 USB Devices
- Network configuration & device setup
- Integration into application
- Supports PROFINET & ASCII protocols
- Auto-Map & Manual-Map modes
- Data parsing & concatenation
- Diagnostic & Alarm configuration
- Security features
- Email & Change of State configuration
Frequently Answers and Questions
What is the purpose of the 460PSUSB Protocol Gateway?
What types of USB devices are supported by the 460PSUSB Protocol Gateway?
How can I configure the network settings of the 460PSUSB Protocol Gateway?
How can I integrate the 460PSUSB Protocol Gateway into my application?
What are the security features of the 460PSUSB Protocol Gateway?
Related manuals
advertisement
Table of contents
- 5 Overview
- 6 Required Tools and Data
- 7 Accessing the Main Page
- 8 Error: Main Page Does Not Launch
- 9 Main Page
- 10 Device Configuration
- 11 PROFINET IO Server Configuration
- 12 PROFINET IO Server Slot Configuration
- 13 PROFINET IO Server Slot Configuration: Auto-Server Mode (Default)
- 14 PROFINET IO Server Slot Configuration: Manual Mode
- 15 Example Setup
- 16 Setting up the PLC- Example Using Simatic Step 7 software
- 21 Setting up the PLC- Example Using TIA Portal
- 26 USB Ports Configuration
- 26 USB Port LED Behavior
- 27 ASCII Configuration
- 28 Receive Data
- 29 Transmit Data
- 30 Transmit Data – Triggering Methods
- 31 ASCII Configuration – ASCII Message Triggering Method
- 33 ASCII Configuration – ASCII Parsing
- 34 ASCII Configuration – ASCII Parsing Examples
- 36 ASCII Configuration – ASCII Concatenating
- 38 ASCII Configuration – ASCII Concatenating Examples
- 40 ASCII Configuration – Additional Variables
- 40 ASCII Message Counter
- 40 Printer Port Status
- 42 Mapping - Transferring Data Between Devices
- 43 Display Mapping and Values
- 43 Display Data
- 45 Display String
- 46 Data and String Mapping – Auto-Map
- 47 Data Mapping – Explanation
- 48 Data Mapping – Adding Diagnostic Information
- 51 String Mapping – Explanation
- 52 Mapping – Auto-Map Mode to Manual-Map Mode
- 53 Mapping – Manual-Map Mode to Auto-Map Mode
- 54 View Data Mapping as Text
- 55 View String Mapping as Text
- 56 Security Configuration
- 57 Security Configuration-Security Levels
- 58 Security - Log In
- 59 Security - Log Out
- 60 Email Configuration
- 61 Alarm Configuration
- 63 Diagnostics – Alarm Status
- 63 Alarms – Active
- 64 Alarms – Clear
- 65 Change of State (COS) Configuration
- 66 Diagnostics Info
- 66 Diagnostics – Data and String Mapping
- 67 Diagnostics – PROFINET IO Server
- 69 Diagnostics – ASCII
- 74 LED Configuration
- 75 Configuration Files
- 75 Export Configuration
- 75 Import Configuration
- 76 Utilities
- 77 Completing the Installation