Perle Systems DS1, TS2 manual Modbus Slave, UDP Unicast Example

Page 165

I/O Modbus Slave

UDP Unicast Example

For an example of the I/O UDP unicast, see the sample program, ioudpbcast.c, found on your CD- ROM.

I/O Modbus Slave

If you have a Modbus serial or TCP application, it can access I/O connected to the IOLAN when the I/O Global Modbus Slave is enabled. You must supply a unique UID for the IOLAN, as it will act as a Modbus Slave.

There are three ways your Modbus Application can connect to the IOLAN to access I/O.

Modbus Serial Application Connected to the Serial Port

Your Modbus serial application can be connected right to the IOLAN serial port to access I/O.

 

 

Serial

UID: 15

 

 

 

 

 

perle

 

 

 

 

 

 

a

IOLAN

PC running

Modbus Serial

 

Application

 

Power

I/O Digital

Output

Modbus Serial Application Connected to the Network

If you want to access the I/O from a LAN connection, you can install TruePort on the PC running the Modbus serial application as described in TruePort I/O and connect to the IOLAN over the network.

Network

PC running a

Modbus Serial

Application

UID: 15

perle

IOLAN

Power

I/O Digital

Output

165

Image 165
Contents Iolan DS1/TS2 EN 55022 1998, Class A, Note About This Book PrefaceIntended Audience DocumentationOnline Help Typeface ConventionsTable of Contents Configuration Methods Getting Started Using DeviceManager and WebManager Serial Port Profiles Network Settings Configuring Users Configuring Security UDP Configuring the System Controlling the I/O Channels Appendix a Virtual Modem AT Commands Appendix D I/O Wiring Diagrams Appendix H Data Logging Appendix I Modbus Remapping 241 Introduction About the IolanIolan Family Models Hardware Iolan FeaturesSoftware Security Connectivity IntroductionIolan Components Getting to Know Your Iolan Power Supply SpecificationsDesktop Models OverviewSerial Activity DS1End View Top ViewConsole/Serial Switch Console ModeSerial Mode Powering Up the Iolan Models with Barrel ConnectorModels with Terminal Block Connector Configuration Methods Chapter Configuration Methods Overview Configures an IP AddressRequires a Configured IP Address Easy Config Wizard Features Access PlatformsConnecting to the Iolan Using DeviceManager DeviceManagerDeviceManager Navigating the Options Using DeviceManagerConnecting to the Iolan Using WebManager Downloading the ConfigurationWebManager WebManager Using WebManager Command Line Interface Connecting to the Iolan Using the CLIThrough the Network Connecting to the Iolan Using the Menu Using the CLIMenu Through the Serial PortUsing the Menu Using DHCP/BOOTP Connecting to the Iolan Using DHCP/BOOTPDHCP/BOOTP Parameters Snmp Connecting to the Iolan Using SnmpUsing the Snmp MIB Getting Started Easy Configuration WizardSetting Up the Network Using a Direct Serial Connection to Specify an IP Address Using a Direct Serial Connection to Enable BOOTP/DHCP For an IPv6 Network Using ARP-PingSetting Up the Serial Ports Setting Up the Serial Ports Setting Up Users Using DeviceManager WebManager DeviceManager Navigating DeviceManager/WebManagerWebManager Starting a New Session Using DeviceManager to Connect to the IolanAssigning a Temporary IP Address to a New Iolan Logging in to the Iolan Adding/Deleting IOLANs ManuallyConfiguration Files Using WebManager to Connect to the IolanCreating a New Iolan Configuration in DeviceManager Logging into the IolanOpening an Existing Configuration File Importing an Existing Configuration FileManaging the Iolan Functionality Serial PortsEditing a Serial Port Resetting a Serial Port Common Tabs Serial Port ProfilesOverview Hardware Tab Field DescriptionsDefault Full Default NoneDefault Auto Enable InboundPacket Forwarding Tab Field Descriptions Enable Trigger2 Enable Trigger1Packet Definition Packet SizeFunctionality Console Management ProfileGeneral Tab Field Descriptions Default TelnetProtocol Listen for Connections on TCP Port IP AddressAdvanced Tab Field Descriptions Dial Out Default 10 ms DialTruePort Profile Dial TimeoutDial Retry ModemConnect Default Disabled Define Additional System Default Enabled Host NameConnect to remote TCP PortAdding/Editing Additional TruePort Hosts Backup Host Adding/Editing a Multihost EntryPrimary Host Signals high Day Motd Default Disabled Enable TCPWhen Enable Data Logging Trueport Lite Mode Dial Retry TCP Sockets Profile Connection Workstation/Server on the network Default EnabledDefault Disabled Adding/Editing Additional Hosts Adding/Editing a Multihost Entry Lost Day Motd Default Disabled Enable DataDefault 10 ms Dial UDP Sockets Profile Serial Port Profiles UDP Entry UDP port Direction Connections onStart IP Address End IP AddressDefault 10 ms Port UDP port to use Default 0 zeroTerminal Profile Session StringsVT100 Default DumbTVI925 VT320 specifically supporting VT320-7When any data is Default Disabled ProtocolAutomatically ReceivedDefault Disabled Hotkey Prefix Session TimeoutData Range Login Settings User Service SettingsInterrupt Telnet SettingsQuit EraseSerial Tunneling Profile Client Default Disabled Host Name Act As TunnelServer Break Length Delay After BreakVirtual Modem Profile 100 DCD DTR Signal Acts as RTS Signal Always OnRTS Signal Acts as AT CommandResponse Delay VModem Phone Number Entry Phone Number to Host MappingControl Signal I/O Profile Phone NumberHost IP Address Invert Signal Input Signal Field DescriptionsAuto Clear Mode DescriptionMode Default Disabled Syslog Output Signal Field DescriptionsManual Clear Failsafe ActionModbus Gateway Profile Destination Slave IP address Advanced Slave Settings ButtonIP Mappings ButtonMessage Timeout Default 30 msDefault 1000 ms Advanced Field DescriptionsModbus Slave IP Settings Field Descriptions Adding/Editing Modbus Slave IP SettingsUID Start Default TCP Default HostUID End TypeModbus Slave Advanced Settings Field Descriptions Default Off Custom Application ProfileGeneral Tab Field Description Closing Serial Port Default Disabled Deny Multiple Advanced Serial Settings TabAdvanced Field DescriptionsAdding/Editing a Modem Modems TabName Name of the modem Field Definitions TruePort Baud Rate TabNetwork Settings IPv4 Settings IP SettingsSystem Name DomainIPv6 Settings Adding/Editing a Custom IPv6 Address Advanced Default IPV6 68-1500 bytesAdding/Editing a Host Host TableAdd Button Adds a host to the host table Edit Button Delete Button Deletes a host from the host tableAdding/Editing Routes Route ListIPv4 Subnet Mask Default DefaultIPv6 Prefix Bits HostConfiguring Users User Settings General Tab Adding/Editing UsersLevel Default NormalService Services TabDefault DSPrompt Host IPDefault English Advanced TabLanguage Sessions Tab Connect Session 1, 2, 3Serial Port Access Tab Services Configuring SecurityField Descriptions Technical Specifications Configuring I/O InterfacesAccess Functionality SettingsAdvanced Slave Modbus Settings Failsafe Timer Functionality UDP Functionality UDP Settings Temperature FunctionalityDefault Celsius UDP EntryAnalog ChannelsMonitoring Application A4D2 Analog I/O AnalogAlarm Settings Default CurrentDigital I/O Monitoring ApplicationInput Mode 147 Default Sink Output ModePulse Mode Default ManualInactive Signal Active SignalRelay I/O Monitoring Application A4D2Relay151 Front Door Digital I/O ExtensionWarehouse Perle Iolan Reception Remote HostCurrent Alarm State 1 Byte z 0 = Not in alarm Message type 1 ByteInput number 1 Byte Enable I/O ExtensionInput TCP Port Local connection HostsSimultaneously Communicate to the Primary Host Temperature I/O Industrial Freezers TemperatureDefault RTD Basic Analog Alarm Settings Alarm SettingsClear Mode Advanced Analog Alarm SettingsTrigger Type ClearUDP Broadcast Packet UDP Unicast FormatLength Enabled Analog SectionSection Channel Digital/Relay Section Serial Pin Signal SectionLength Channel Length PinUDP Unicast Example Modbus SlaveModbus Serial Application Connected to the Serial Port Modbus Serial Application Connected to the NetworkModbus I/O Access Modbus TCP ApplicationFunction Codes Coil/Register Descriptions A4/T4 Registers Serial Port Coil/Register DescriptionsData Model A1/T1 A2/T2 A3/T3 A4/T4 Holding Registers Input RegistersData Model D1/R1 D2/R2 Coils A4D2/A4R2 RegistersD4/D2R2 Registers Serial Pin SignalsData Model D3/R1 D4/R2 Coils Data Model Pin CoilsTruePort I/O Modbus Serial Application TruePort Power Digital OutputTruePort/Modbus Combination PC running aPC running Custom Application API TruePort API Over TruePort OnlyAccessing I/O Data Via TruePort SetupIntroduction Get Commands Format of API CommandsCommand Format Response FormatSet Commands Unsuccessful Response Format Successful Response FormatExample 1 Turn on the first relay on a D2R2 unit Example 2 Turn on the first and second relay on a D2R2 unitSnmp Traps Error CodesConfiguring the System Chapter AlertsSyslog Management Snmp Traps Tab Field Descriptions Default 1 second Custom App/PluginField Description Login Tab Field Descriptions Bootup Files Tab Field Descriptions Message of the Day Motd Tab Field Descriptions WebManager WebManager. Default DisabledTftp Host FilenameDefault 3 seconds Tftp Tab Field DescriptionsRetry Controlling the I/O Channels Activate Output Manually activates the channel output System Administration Chapter Managing Configuration FilesSaving Configuration Files Downloading Configuration Files Downloading Configuration Files to Multiple IOLANs Reboot ServerServer Name Specifying a Custom Factory Default Configuration Uploading Configuration FilesDownloading Iolan Firmware Resetting the Iolan to the Default ConfigurationCalibrating I/O Calibrating Analog InputCalibrating Current Calibrating VoltageCalibrating Temperature Input Calibrating ThermocoupleCalibrating RTD Calibrating Analog Channels Resetting Calibration DataSetting the IOLAN’s Date and Time Rebooting the IolanResetting the Iolan to Factory Defaults Loading a Supplied Language Language SupportTranslation Guidance Software Upgrades and Language FilesCreating Terminal Definition Files Downloading Terminal DefinitionsFor example Resetting Configuration ParametersLost admin Password Virtual Modem Initialization Commands CommandsAT&Sn AT&RnAT&Cn Pinouts and Cabling Diagrams Serial PinoutsDB25 Male DB25 Female RJ45 DB9 Male I/O DB9 Male Serial OnlyTerminal DB25 Connector EIA-232 Cabling DiagramsDB25 Male DB25 FemaleRJ45 DB9 Male10-pin Pin Iolan RJ45 DCE Modem DB25 ConnectorRxD TxD DTR 20 DTR GND Setting Jumpers Port IolanIolan DB25 Male/Female Iolan RJ45 DIP Digital I/O Module Analog Input Module Wiring I/O Diagrams Digital Input Wet ContactDigital Input Dry Contact Digital Output Source Digital Output SinkAnalog Input Temperature InputCurrent VoltageRTD 3-Wire RTD 2-WireRTD 4-Wire Relay OutputNormally Closed Contact TruePort TruePort UtilityAPI I/O Access Over TruePort API Request FormatAPI Response Format Error Codes Starter Kit Adapters/Cable AccessoriesRJ45F to DB25M DTE Crossover Adapter RJ45F to DB25M DCE Modem Adapter RJ45F to DB25F DTE Crossover Adapter RJ45F to DB9M DTE Crossover Adapter RJ45F to DB9F DTE Crossover Adapter Sun/Cisco RJ45M Connector Cable for Rack Mount ModelsStarter Kit Adapters/Cable Accessories Hardware Problems TroubleshootingCommunication Issues Power/Ready LED continues to blink green in desktop modelsDeviceManager Problems Host ProblemsLogin Problems Login Problems Unknown IP Address Problems with TerminalsLanguage Problems DHCP/BOOTP ProblemsLong Reboot Cycle ModelsIPv6 Issues Making a Technical Support Query Contacting Technical SupportFeedback on this Manual Repair ProcedureData Logging Trueport ProfileTCP Socket Profile Configuring the Modbus UID Translation Feature Modbus Remapping FeatureCreate a configuration file Line format for one UID isConfiguring the Modbus UID Translation Feature Glossary Information Protocol RIP RoutingRoaming Callback Silent ConnectionIndex BootpSnmp
Related manuals
Manual 224 pages 30.96 Kb Manual 88 pages 61.31 Kb Manual 122 pages 55.83 Kb

DS1, TS2 specifications

Perle Systems TS2 and DS1 are advanced serial-to-Ethernet devices designed to facilitate seamless integration of serial devices with modern IP networks. These devices serve as crucial tools for businesses looking to enhance their communication capabilities while leveraging existing infrastructure.

One of the standout features of the Perle TS2 and DS1 is their ability to support multiple serial protocols including RS232, RS422, and RS485. This versatile support allows businesses to connect various legacy devices to their networks, ensuring that critical equipment can still communicate effectively in an increasingly digital landscape.

The TS2 model is particularly noted for its dual serial ports, enabling simultaneous communication with multiple devices. This capability is invaluable for applications requiring real-time data transmission, such as remote monitoring and automated control systems. The DS1 model, on the other hand, is designed for single-port use, making it an ideal solution for smaller-scale operations or specific single-device connections.

Both the TS2 and DS1 incorporate advanced features such as configuration through a web interface, which simplifies setup and management. Users can easily access device settings and monitor performance metrics remotely, enhancing operational efficiency. These devices also support various network protocols such as TCP/IP, UDP, and ICMP, ensuring compatibility with a wide range of network architectures.

In terms of security, Perle Systems prioritize user data protection. The TS2 and DS1 offer features including SSL encryption and SSH protection, providing an added layer of security for sensitive information transmitted over the network. This is particularly important for industries where data integrity and security are paramount, such as healthcare and finance.

Additionally, the rugged design of both devices ensures reliable performance even in harsh environments. With extended temperature ratings and robust housing, the TS2 and DS1 can operate in diverse conditions without compromising functionality.

To summarize, the Perle Systems TS2 and DS1 provide a reliable and flexible solution for connecting legacy serial devices to modern networks. With their support for multiple serial protocols, web-based management, robust security features, and rugged design, these devices cater to a variety of industries looking to modernize their communication infrastructure while maintaining existing equipment. Whether for large-scale operations or smaller implementations, the TS2 and DS1 equip businesses with the tools needed for effective serial communication in an IP-driven world.