Moxa Technologies NE-4100 Series Скачать руководство пользователя страница 118

NE-4100 Series User’s Manual 

DIO Commands 

 

D-6

Byte # 

Descriptor 

Value 

Description 

7 Data 

0,1 

1st DIO channel to be written 
0: set to input mode 
1: set to output mode 

8 Data 

0,1 

1st DIO channel to be written 
0: set to low 
1: set to high 

9 Data 

0,1 

2nd DIO channel to be written 
0: set to input mode 
1: set to output mode 

10 Data 

0,1 

2nd DIO channel to be written 
0: set to low 
1: set to high 

11 Data 

0,1 

3rd DIO channel to be written, optional 
0: set to input mode 
1: set to output mode 

12 Data 

0,1 

3rd DIO channel to be written, optional 
0: set to low 
1: set to high 

13 Data 

0,1 

4th DIO channel to be written, optional 
0: set to input mode 
1: set to output mode 

14 Data 

0,1 

4th DIO channel to be written, optional 
0: set to low 
1: set to high 

This command writes the status of a range of DIO channels, specified in bytes 5 and 6. The length 
of the command depends on the number of channels to be written. For example, the 10-byte 
command 

6-2-0-6-0-1-0-0-1-1

 requests DIO 0 be set to digital input mode and “low” status and 

DIO 1 be set to digital output mode and “high” status. If you wanted to include a change of DIO 2 
to digital output mode and “low” status, the 12-bye command sequence would be 

6-2-0-8-0-2-0-0-1-1-1-0

Response 

Byte # 

Descriptor 

Value 

Description 

1 Header 6 

command 

number, 

fixed 

2 Header 2 

version, 

fixed 

3 Header 

0, 1, 2, 3,

4, 5, 6, 

0xFF 

command status/error code (0 = okay) 

4 Header 

4, 

6, 

data length, depends on the number of DIO channels 
requested 

5 Data 

0, 

1st requested DIO channel 
0: channel has been changed to input mode 
1: channel has been changed to output mode 

6 Data 

0, 

1st requested DIO channel 
0: channel status has been changed to low 
1: channel status has been changed to high 

 

RSPSupply  -  1-888-532-2706 -  www.RSPSupply.com

http://www.RSPSupply.com/p-9766-Moxa-NE-4120A.aspx

Содержание NE-4100 Series

Страница 1: ...Manual Ninth Edition June 2008 www moxa com product 2008 Moxa Inc all rights reserved Reproduction without permission is prohibited RSPSupply 1 888 532 2706 www RSPSupply com http www RSPSupply com p 9766 Moxa NE 4120A aspx ...

Страница 2: ...es to this manual or to the products and or the programs described in this manual at any time Information provided in this manual is intended to be accurate and reliable However Moxa assumes no responsibility for its use or for any infringements on the rights of third parties that may result from its use This product might include unintentional technical or typographical errors Changes are periodi...

Страница 3: ...g the NE 4100T onto the NE 4100 ST 3 3 Installing the NE 4110S NE 4110A onto the NE 4110 ST 3 3 Installing the NE 4120S NE 4120A onto the NE 4120 ST 3 4 Selecting the Serial Interface 3 4 Circuit Pad for External Connection 3 5 Connecting the Power 3 5 Connecting to the Network 3 6 Connecting to a Serial Device 3 6 Digital I O Channel Settings 3 6 Digital Output LED Circuit Design 3 8 Chapter 4 Ch...

Страница 4: ...strator 7 1 Overview 7 2 Installing Network Enabler Administrator 7 2 Network Enabler Administrator Navigation 7 4 Configuration Functions 7 5 Broadcast Search 7 5 Specify by IP Address 7 6 Locate 7 6 Unlock 7 7 Configure 7 8 Upgrade Firmware 7 10 Import and Export Configuration 7 11 Monitor Functions 7 12 Add and Remove Target 7 12 Load Configured COM Port 7 13 Settings 7 13 Go and Stop 7 15 Port...

Страница 5: ...Serial Command Mode 9 13 Trigger Type 9 13 Serial Port Parameters 9 13 Comments 9 14 Exiting Serial Command Mode 9 14 Determining the Active Mode 9 14 Serial Command Examples 9 15 Example 1 Get Model Name Using HW Trigger 9 16 Example 2 Change IP Address Using HW Trigger 9 16 Example 3 Get IP Mode Using SW Trigger 9 16 Example 4 Change TCP Port Number Using SW Trigger 9 17 Appendix A Well Known Po...

Страница 6: ...ommand D 4 Response D 4 C Code Example D 5 Write Multiple DIO D 5 Command D 5 Response D 6 C Code Example D 7 Appendix E SNMP Agent with MIB II RS 232 Like Group E 1 RSPSupply 1 888 532 2706 www RSPSupply com http www RSPSupply com p 9766 Moxa NE 4120A aspx ...

Страница 7: ...k allowing you to gain network access to any electronic device that has a serial port All NE 4100 Series modules come equipped with built in TCP IP protocols for fast integration saving you time and energy on programming The following topics are covered in this chapter Overview Package Checklist Product Features Product Specifications RSPSupply 1 888 532 2706 www RSPSupply com http www RSPSupply c...

Страница 8: ...a user friendly Windows utility web browser serial console or Telnet console In addition a Windows based NECI Network Enabler Configuration Interface library is available to help you develop your own Windows utilities Each module comes with a complete development kit containing an evaluation board documents sample code cables and accessories Package Checklist y 1 NE 4100 Series module y 1 NE 4100 ...

Страница 9: ...y None Even Odd Space Mark Data Bits 5 6 7 8 Stop Bit 1 1 5 2 Flow Control RTS CTS XON XOFF Transmission Speed 50 bps to 115 2 Kbps for PCB V1 x 110 bps to 230 4 Kbps for PCB V2 x Software Features Protocols ICMP ARP IP TCP UDP DHCP HTTP SNMP SMTP Operating Mode TCP Server TCP Client UDP Real COM mode Utilities NE utility for Windows 95 98 ME NT 2000 XP 2003 x64 XP x64 Configuration web browser se...

Страница 10: ...nd development of applications for NE 4100 Series modules The following topics are covered in this chapter NE 4100T NE 4100 ST Panel Layout NE 4100 ST LED Indicators Pin Assignments Block Diagrams NE 4110S NE 4110A NE 4110 ST Panel Layout NE 4110 ST LED Indicators Pin Assignments Block Diagrams NE 4120S NE 4120A NE 4120 ST Panel Layout NE 4120 ST LED Indicators Pin Assignments Block Diagrams RSPSu...

Страница 11: ...er Jack Ethernet Port Serial Port RS 232 Debug Serial COM Port DI O Terminal Block Reset Button DI O Signal Setting Switches DI O Selector Jumpers 149 00 mm m m 0 0 9 9 NE 4100 ST LED Indicators LED Name LED Color LED Function Power Red Indicates the power is on Steady on Power is on and NE 4100T is functioning normally Green Blinking NE 4100T has been located by Network Enabler s Administrator s ...

Страница 12: ...has a signal Pin Assignments NE 4100T Pin Signal Pin Signal 1 ETx 14 PIO0 2 ETx 15 PIO1 3 ERx 16 PIO2 4 ERx 17 PIO3 5 10M LED 18 100M LED 6 TXD 19 DCD 7 RXD 20 DSR 8 RTS 21 DTR 9 CTS 22 GND 10 Reset 23 Ready LED 11 GND 24 5V 12 GND 25 5V 13 TXD1 26 RXD1 Pins 13 and 26 control the NE 4100 ST Debug Serial COM Port s TXD and RXD signals The location of the Debug Serial COM Port is shown on the previo...

Страница 13: ...D 4 DTR 5 GND 6 DSR 7 RTS 8 CTS 1 6 2 7 3 8 4 5 DIO Terminal Block D0 D1 D2 D3 Block Diagrams Tx Rx 5 VDC 1 MB SDRAM 2 MB Flash 80186 CPU GPIO Port PIO0 PIO3 MAC Line Driver Serial Console interface RJ45 10M LED 100M LED 10 100M Ethernet PHY Transformer 1 5 KV Isolation UART0 UART1 Customer s Device UART Ready LED TTL Serial data Tx Rx RTS CTS DTR DSR DCD RSPSupply 1 888 532 2706 www RSPSupply com...

Страница 14: ...4 1 J1 J2 57 00 mm m m 0 0 0 4 NE 4110A J1 J2 57 00 mm m m 0 0 0 4 1 2 1 2 9 0 1 3 1 4 1 2 P J NE 4110 ST 1 2 3 4 ON DIP 9 10 13 14 1 2 1 2 Jumper 9 J9 Jumper 10 J10 Power Jack Serial Port RS 232 Debug Serial COM Port DI O Terminal Block Reset Button DI O Signal Setting Switches DI O Selector Jumpers Interface Selector Jumpers 149 00 mm m m 0 0 9 9 JP2 is used to select RS 485 4 wire RS 422 or RS ...

Страница 15: ...s that DIO is in low 0 status TXD0 Red Indicates that TXD0 has a signal RXD0 Red Indicates that RXD0 has a signal DTR0 Red Indicates that DTR0 has a signal CTS0 Red Indicates that CTS0 has a signal DSR0 Red Indicates that DSR0 has a signal DCD0 Red Indicates that DCD0 has a signal RTS0 Red Indicates that RTS0 has a signal TXD1 Red Indicates that TXD1 has a signal RXD1 Red Indicates that RXD1 has a...

Страница 16: ...uts J2 9 7 5 3 1 10 8 6 4 2 11 13 12 14 Ready_LED RxD1 Reset 100M_LED 10M_LED VCC 5V VCC 5V TxD1 DIO3 DIO2 DIO1 DIO0 GND GND NE 4110 ST Pinouts Debug Serial Port for Serial Console RS 232 Port for Serial Devices Pin Signal 2 RXD 3 TXD 5 GND 2 3 5 Pin Signal 1 DCD 2 RXD 3 TXD 4 DTR 5 GND 6 DSR 7 RTS 8 CTS 1 6 2 7 3 8 4 5 Serial and DIO Terminal Blocks TXD D0 D1 D2 D3 TXD RXD RXD Data Data SGND RSPS...

Страница 17: ...river Line Driver UART1 GPIO Port PIO0 PIO3 10M LED 100M LED RJ45 Serial data Tx Rx RTS CTS DTR DSR DCD NE 4110A Block Diagram 1 MB SDRAM 2 MB Flash 10 100 M Ethernet PHY 5 VDC MAC 80186 CPU Transformer 1 5 KV isolation 1 8 UART0 Tx Rx Customer s device Ready LED RS 422 485 interface Tx Tx Rx Rx Serial console interface Line Driver Line Driver UART1 GPIO Port PIO0 PIO3 10M LED 100M LED RJ45 RS 422...

Страница 18: ...odules and developing your own applications ATTENTION The NE 4120 ST is the same board as the NE 4110 ST but with an RJ45 jack and pin headers If your evaluation board has NE 4110 ST printed on the board but has the RJ45 jack and pin headers you have the NE 4120 ST board Panel Layout NE 4120S 1 2 1 2 9 0 1 3 1 4 1 1 2 3 4 5 J1 J2 J3 57 00 mm m m 0 0 0 4 NE 4120A 1 2 1 2 9 0 1 3 1 4 1 1 2 3 4 5 J1 ...

Страница 19: ... normally Green Blinking NE 4120 has been located by Network Enabler Administrator Ready Steady off y Power is off or power error condition exists y IP address cannot be found in DHCP mode y IP address conflict DIO0 Red Indicates that DIO is in low 0 status DIO1 Red Indicates that DIO is in low 0 status DIO2 Red Indicates that DIO is in low 0 status DIO3 Red Indicates that DIO is in low 0 status T...

Страница 20: ... The symbols B and A are often used in place of and respectively ATTENTION For the 2 wire RS 485 interface pin 3 is for Data B and pin 4 is for Data A NE 4120S and NE 4120A Ethernet Header Pinouts J3 1 2 3 4 5 Tx Tx Rx Rx NE 4120S and NE 4120A DIO and LED Header Pinouts J2 9 7 5 3 1 10 8 6 4 2 11 13 12 14 Ready_LED RxD1 Reset 100M_LED 10M_LED VCC 5V VCC 5V TxD1 DIO3 DIO2 DIO1 DIO0 GND GND RSPSuppl...

Страница 21: ...nal Blocks TXD D0 D1 D2 D3 TXD RXD RXD Data Data SGND Block Diagrams NE 4120S Block Diagram Pin header 1 MB SDRAM 2 MB Flash 10 100 M Ethernet PHY 5 VDC MAC 80186 CPU Transformer 1 5 KV isolation UART0 Tx Rx Customer s device Ready LED RS 232 interface Tx Tx Rx Rx Serial console interface Line Driver Line Driver UART1 GPIO Port PIO0 PIO3 10M LED 100M LED Serial data Tx Rx RTS CTS DTR DSR DCD RSPSu...

Страница 22: ... 5 VDC MAC 80186 CPU Transformer 1 5 KV isolation UART0 Tx Rx Customer s device Ready LED RS 422 485 interface Tx Tx Rx Rx Serial console interface Line Driver Line Driver UART1 GPIO Port PIO0 PIO3 10M LED 100M LED RS 422 485 Signal Pin header RSPSupply 1 888 532 2706 www RSPSupply com http www RSPSupply com p 9766 Moxa NE 4120A aspx ...

Страница 23: ...0T onto the NE 4100 ST Installing the NE 4110S NE 4110A onto the NE 4110 ST Installing the NE 4120S NE 4120A onto the NE 4120 ST Selecting the Serial Interface Circuit Pad for External Connection Connecting the Power Connecting to the Network Connecting to a Serial Device Digital I O Channel Settings Digital Output LED Circuit Design RSPSupply 1 888 532 2706 www RSPSupply com http www RSPSupply co...

Страница 24: ...ernal components generate heat and consequently the board may feel hot to the touch You should also pay attention to the following y Do not run signal or communication wiring and power wiring in the same wire conduit To avoid interference wires with different signal characteristics should be routed separately Separate paths should be used to route wiring for power and devices You can use the type ...

Страница 25: ... serial device to the evaluation board NE 4100 ST Starter Kit 1 2 3 4 ON DIP NE 4100T Series Module Installing the NE 4110S NE 4110A onto the NE 4110 ST The NE 4110S and NE 4110A modules are attached to the NE 4110 ST board using mounting screws that are provided with the board When attaching the module to the board make sure that the module is oriented so that the jumper banks on the module and t...

Страница 26: ...ial Interface NE 4100 Series modules are available for different serial interfaces The NE 4110S and NE 4120S are designed for the RS 232 interface and the NE 4110A and NE 4120A are designed for the RS 422 485 interface On the NE 4110 ST and NE 4120 ST evaluation boards the Network Enabler Interface jumper block is used to select the serial interface used for your particular module JP2 Network Enab...

Страница 27: ...f jumper block J9 DIO and LED signals are mapped to J4 as an extension of jumper block J10 This means that pin assignments for J3 on the circuit pad are the same as the pin assignments for jumper block J9 pin assignments for J4 on the circuit pad are the same as the pin assignments for jumper block J10 5V 3 3V 1 2 9 10 1 2 J9 13 14 1 2 J10 J3 9 10 1 2 13 14 J4 GND Connecting the Power Connect the ...

Страница 28: ...n order to access the module from a host on the network Connecting to a Serial Device To connect to a serial device for testing and development purposes the module should be installed onto its evaluation board The module s serial signals are routed to and from the RS 232 COM port on the evaluation board Use a serial data cable to connect the serial device to the COM port on the evaluation board Di...

Страница 29: ...ode jumpers are used to tell the evaluation board whether to use the Digital Output LEDs or the Digital Input DIP switches The jumpers do not control the channel s mode Input and output mode is configured through the web serial or Telnet console or through Network Enabler Administrator Digital Input When using a Digital Input DIP switch as your input device the ON position corresponds to Low statu...

Страница 30: ...Max Unit Conditions Low level Input Voltage Maximum voltage when DI is set to Low status 0 3xVCC V High level Input Voltage Minimum voltage when DI is set to High status 0 7xVCC V Low level Input Voltage Maximum voltage when DO is set to Low status 0 4 V High level Input Voltage Minimum voltage when DO is set to High status 2 4 V The output current for digital output channels carries only 1 mA RSP...

Страница 31: ...ere is an operation mode for COM port mapping from the host computer as well operation modes for TCP IP protocols After choosing the proper operating mode in this chapter please refer to subsequent chapters for details on configuration parameters The following topics are covered in this chapter Overview TCP Server Mode TCP Client Mode UDP Mode Real COM Mode RSPSupply 1 888 532 2706 www RSPSupply c...

Страница 32: ...at TCP guarantees delivery of data by requiring the recipient to send an acknowledgement to the sender UDP does not require this type of verification making it possible to offer speedier delivery UDP also allows multicasting of data to groups of IP addresses ATTENTION The figures in this chapter use the NE 4110S as an example but they apply to all models in the NE 4100 Series TCP Server Mode TCP S...

Страница 33: ...e module actively establishes a connection based on the conditions set in the firmware You may let the module connect to a remote host on startup or connect later when data from serial device arrives 2 Once the connection is established data can be transmitted in both directions from the host to the module and from the module to the host UDP Mode UDP Mode UDP mode is faster and more efficient than...

Страница 34: ... TCP IP packet and then transparently sends the data to the attached serial device The driver thus establishes a transparent connection between the host and serial device allowing the host to treat the networked device as if it were directly attached ATTENTION The Real COM driver comes with Network Enabler Administrator which is part of the NE 4100 Series Administration Suite ATTENTION Real COM mo...

Страница 35: ... IP address For more details about network settings please refer to the Network Settings section from Chapter 6 Web Console Configuration This chapter includes the following sections Static vs Dynamic IP Address Factory Default IP Address NE 4100 Series Administration Suite Å recommended configuration method ARP Telnet Console Serial Console 19200 n 8 1 RSPSupply 1 888 532 2706 www RSPSupply com h...

Страница 36: ... able to ping such a device from an outside Internet connection Applications that require sending data over a public network such as the Internet require setting up the server with a valid public IP address which can be leased from a local ISP NE 4100 Series Administration Suite The NE 4100 Series Administration Suite consists of some useful utilities that are used to configure and manage the modu...

Страница 37: ...suing this command a Connect failed message will appear as shown here After the module reboots its IP address will be updated to the new address and you can reconnect using Telnet web or Network Enabler Administrator to verify that the update was successful Telnet Console Depending on how your computer and network are configured you may find it convenient to use network access to set up your modul...

Страница 38: ...ver 2 7 SNMP 8 SNMP community name 9 SNMP contact a SNMP location b Auto IP report to IP c Auto IP report to TCP port d Auto IP report period v View settings m Back to main menu q Quit Key in your selection 1 5 Use the Backspace key to erase the current IP address then type in the new IP address and press Enter Main Menu Network settings 1 IP address 2 Netmask 3 Gateway 4 IP configuration 5 DNS se...

Страница 39: ...n menu Main Menu Network settings 1 IP address 2 Netmask 3 Gateway 4 IP configuration 5 DNS server 1 6 DNS server 2 7 SNMP 8 SNMP community name 9 SNMP contact a SNMP location b Auto IP report to IP c Auto IP report to TCP port d Auto IP report period v View settings m Back to main menu q Quit Key in your selection m 8 Press S and then Enter to Save Restart the system Main Menu 1 Basic setting 2 N...

Страница 40: ...Plug one end of a serial cable into the RS 232 DEBUG P1 serial port on the evaluation board plug the other end directly into your computer s male RS 232 serial port 2 From the Windows desktop click on Start Æ Programs Æ PComm Lite Æ Terminal Emulator 3 When the PComm Terminal Emulator window opens select Open from the Port Manager menu or simply click on the Open icon 4 The Property window opens a...

Страница 41: ... open up At this point it will look exactly the same as the Telnet console Please continue to step 3 in the previous Telnet Console section for the rest of the instructions on setting up the IP address RSPSupply 1 888 532 2706 www RSPSupply com http www RSPSupply com p 9766 Moxa NE 4120A aspx ...

Страница 42: ...tions Opening Your Browser Web Console Navigation Basic Settings Network Settings Serial Settings Operating Settings TCP Server Mode Real COM Mode TCP Client Mode UDP Mode Accessible IP Settings Auto Warning Settings E mail and SNMP Trap Event Type Digital IO DIO Settings DIO Monitor Serial Command Mode Change Password Load Factory Defaults Save Restart RSPSupply 1 888 532 2706 www RSPSupply com h...

Страница 43: ...u use other web browsers remember to enable the functions to allow cookies that are stored on your computer or allow per session cookies NE 4100 Series modules only use cookies for password transmission ATTENTION Please refer to Chapter 5 Initial IP Address Configuration for instructions on IP configuration The examples in this chapter use the factory default IP address 192 168 127 254 3 The web c...

Страница 44: ...can configure You must click on the Submit button to keep your configuration changes The Submit button will be located at the bottom of every page that has configurable settings If you navigate to another page without clicking the Submit button your settings will not be retained Changes will not take effect until they are saved and the module is restarted You may complete this in one step by click...

Страница 45: ...ime stdtime gov tw or time nist gov None Optional NE 4100 Series modules use SNTP RFC 1769 for auto time calibration Enter the Time Server IP address or domain address When the Time Server IP address is provided the module will request time information from the Time Server every 10 minutes Console Web console Telnet console Setting Factory Default Necessity Enable or Disable Enable Required The we...

Страница 46: ... User defined IP address Netmask Gateway DHCP DHCP Server assigned IP address Netmask Gateway DNS and Time Server DHCP BOOTP DHCP Server assigned IP address Netmask Gateway DNS and Time Server or BOOTP Server assigned IP address BOOTP BOOTP Server assigned IP address IP configuration is a required field The default setting is Static ATTENTION In Dynamic IP environments the module will attempt to o...

Страница 47: ...rnet service provider are gateway nodes The module needs to know the IP address of the default gateway computer in order to communicate with the hosts outside the local network environment For correct gateway IP address information consult your network administrator DNS server 1 DNS sever 2 Setting Factory Default Necessity E g 192 168 1 1 IP addresses of the form x x x 0 and x x x 255 are invalid...

Страница 48: ...me way of obtaining the module s new IP address The IP Address report fields are used to set up periodic reporting of the module s IP address when the module s IP address is assigned by a server The IP address report is sent automatically at regular intervals to an IP address and TCP port number of your choice There are two ways view the module s IP address report on a PC y Install Network Enabler...

Страница 49: ...mware version 3 0 and above Port Alias Setting Factory Default Necessity 1 to 15 characters E g PLC No 1 None Optional This function is designed for future use You may enter a string to help in the module s serial port from other serial ports Serial Parameters ATTENTION Refer to the serial communication parameters in your serial device s user s manual The module s serial parameters should be the s...

Страница 50: ...ven Odd Space Mark None Required Flow control Setting Factory Default Necessity None RTS CTS DTR DSR XON XOFF RTS CTS Required FIFO Setting Factory Default Necessity Enable Disable Enable Required Each module s serial port provides a 16 byte FIFO both in the Tx and Rx directions Disable the FIFO setting when your serial device does not have a FIFO to prevent data loss during communication Operatin...

Страница 51: ...mote host by sending keep alive packets periodically If the remote host does not respond to the packet it assumes that the connection was closed down unintentionally The module will then force the existing TCP connection to close ATTENTION The Inactivity time should be longer than the Force transmit timeout To prevent the unintended loss of data due a session getting disconnected it is strongly re...

Страница 52: ...ithout Delimiter 1 Force transmit Setting Factory Default Necessity 0 to 65535 ms 0 ms Optional 0 The force transmit timeout is disabled 1 to 65535 If the module does not receive the next byte of data within the time specified it will packed the data in its buffer into the same data frame for network transmission The Force transmit field is typically used in conjunction with the Delimiter fields t...

Страница 53: ...losed due to an idle TCP connection 1 to 99 min The module automatically closes the TCP connection if there is no TCP activity for the given time After the connection is closed the module starts listening for another host s TCP connection Max connection Setting Factory Default Necessity 1 2 3 4 1 Required Max connection is used when the user needs to receive data from different hosts simultaneousl...

Страница 54: ...g of serial data By default no delimiter characters are defined so the module transmits data as soon as it is received When a delimiter character or characters are defined the module will hold data in its buffer until it receives the delimiter character or 2 character sequence When the delimiter is received the module will pack up the data in its buffer and send it through the Ethernet port Use De...

Страница 55: ...eived for the specified time When set to 0 Force transmit is disabled which means there is no time limit for how long the module will wait to receive data When set between 1 and 65535 the module will pack data as soon as there has been no serial communication for the specified time The optimal force transmit time depends on your application but it should be larger than one character interval withi...

Страница 56: ...tion status between itself and the remote host by sending keep alive packets periodically If the remote host does not respond to the packet it assumes that the connection was closed down unintentionally The module will then force the existing TCP connection to close ATTENTION The Inactivity time should be longer than the Force transmit timeout To prevent the unintended loss of data due a session g...

Страница 57: ...uffer as it waits to receive a delimiter If there is a break in communication data will be held in the buffer as the module continues to wait for a delimiter The Force transmit field allows you to specify the maximum amount of time that the module will wait for data With Force transmit enabled the module will automatically pack the data in the buffer for network transmission if no data is received...

Страница 58: ...ions you may need to send the data actively to a remote destination s domain name address TCP connect on Setting Factory Default Necessity Start up Any Character Start up Optional Start up The module will attempt to establish a TCP connection as soon as it is powered on Any Character The module will attempt to establish a TCP connection as soon as the module starts receiving serial data UDP Mode N...

Страница 59: ... next byte of data within the time specified it will packed the data in its buffer into the same data frame for network transmission The Force transmit field is typically used in conjunction with the Delimiter fields to specify how data in the module s buffer is packed for network transmission When delimiters are used the module accumulates data in its buffer as it waits to receive a delimiter If ...

Страница 60: ...ses or IP address ranges that are authorized to access the module To allow access to a specific IP address Enter the IP address in the corresponding field enter 255 255 255 255 for the netmask To allow access to hosts on a specific subnet For both the IP address and netmask use 0 for the last digit e g 192 168 1 0 and 255 255 255 0 To allow unrestricted access Deselect the Enable the accessible IP...

Страница 61: ...lt Necessity 1 to 15 characters None Optional From E mail address Setting Factory Default Necessity 1 to 63 characters NE _ Serial No NE4100 Series Module Name Optional E mail address 1 2 3 4 Setting Factory Default Necessity 1 to 63 characters None Optional ATTENTION Consult your network administrator or ISP for the proper mail server settings The Auto warning function may not work properly if no...

Страница 62: ...module is restarted without turning the power off If this is selected automatic notification is sent if the module is rebooted while still powered on Authentication failure The user inputs a wrong password from the console or Network Enabler Administrator If this is selected automatic notification is sent if a user attempts to unlock the module and enters the wrong password IP address changed The ...

Страница 63: ... specify either digital input or digital output operation IN is for digital input operation where the channel s status is controlled by an external digital switch OUT is for digital output operation where the channel transmits a high or low signal Use Status to control high or low status for digital output channels Status setting will be ignored for digital input channels TCP Port is the port numb...

Страница 64: ...tion panel to display the Change Password window NOTE Serial Command Mode is supported in firmware version 3 0 and above Enter the old password and new passwords and click on Submit To remove password protection leave the new password blank and just enter the old password ATTENTION If you forget the password the ONLY way to configure the module is to load factory defaults Remember to export the co...

Страница 65: ...navigation panel and then click on Submit All previous modifications will be lost NOTE Serial Command Mode is supported in firmware version 3 0 and above Save Restart Click on Save Restart in the navigation panel to save all submitted changes and restart the module RSPSupply 1 888 532 2706 www RSPSupply com http www RSPSupply com p 9766 Moxa NE 4120A aspx ...

Страница 66: ...work Enabler Administrator Navigation Configuration Functions Broadcast Search Specify by IP Address Locate Unlock Configure Upgrade Firmware Import and Export Configuration Monitor Functions Add and Remove Target Load Configured COM Port Settings Go and Stop Port Monitor Functions COM Mapping Functions Add and Remove Target COM Settings Enable and Disable Apply and Discard Change Import and Expor...

Страница 67: ...simplify the installation process It allows off line COM mapping and provides monitoring and IP location server functions In addition you may import and export the module s configuration for backup or duplication into another module Installing Network Enabler Administrator 1 Open the Setup program and click Yes to proceed 2 Click Next when the Welcome window opens to proceed with the installation ...

Страница 68: ...install program files in the default directory 5 The Installing window will report the progress of the installation 6 Click Finish to complete the installation of Network Enabler Administrator RSPSupply 1 888 532 2706 www RSPSupply com http www RSPSupply com p 9766 Moxa NE 4120A aspx ...

Страница 69: ...ed type in the navigation panel or select it from the menu bar Once the type of function is selected the right panel will show the list of modules that may be used for the selected functions 2 Modules that have been detected by Network Enabler Administrator are listed in the right panel Click the desired target module in the module list Note that each type of function has its own independent modul...

Страница 70: ...ns are used ATTENTION When Network Enabler Administrator is first opened you must use Broadcast Search or Specify by IP Address to find the module in order to unlock other functions Broadcast Search Broadcast Search is used to find all NE 4100 Series modules that are connected to the same LAN as your computer Since the Broadcast Search function searches by MAC address and not IP address all NE 410...

Страница 71: ...ed to search the network for a specific module by its IP address When the module is found it is added to the Configuration module list and may be selected for use with other functions If you have trouble detecting the module please verify your network settings and connection Locate Locate sends a signal to make the selected module s Ready LED blink which makes it easier to locate the module if you...

Страница 72: ...rotected and Broadcast Search was used to locate it Fixed The module is not password protected and Specify by IP address was used to locate it Note that the term Fixed is borrowed from the standard fixed IP address networking terminology Lock Fixed The module is password protected Specify by IP address was used to locate it and the password has not yet been entered from within the current Network ...

Страница 73: ... or change the module s password select the Configure command in the Configuration context menu Configure Configure is used to change the selected module s settings All web console settings are available here 1 Select Configure from the Configuration context menu Note that this menu may also be opened by right clicking Configuration in the navigation panel or by right clicking the selected module ...

Страница 74: ...e Modify box must be checked The changes will be made effective after you click OK which will save all changes and restart the module Please refer to Chapter 6 for descriptions of each parameter ATTENTION You may simultaneously modify the configurations of multiple modules as long as the modules are all the same model To select multiple modules in the module list hold down the Ctrl key while selec...

Страница 75: ...ownloaded to the module You may download the latest firmware at www moxa com 3 The window will indicate when the firmware has been successfully updated Do not interrupt processing while the firmware is being updated ATTENTION You may simultaneously upgrade the firmware of multiple modules as long as the modules are all the same model To select multiple modules in the module list hold down the Ctrl...

Страница 76: ...guration may be exported to a text file by selecting Export Configuration in the Configuration context menu Note that this menu may also be opened by right clicking Configuration in the navigation panel or by right clicking the selected module ATTENTION You can simultaneously import the same configuration file into multiple modules as long as the modules are all the same model To select multiple m...

Страница 77: ...delete the selected items from the Monitor module list 1 Search for the module to add to the Monitor module list by selecting Add Target in the Monitor context menu Note that this menu may also be opened by right clicking Monitor in the navigation panel 2 There are three options for adding a module y If the module already shows up you may select it with a check mark and then click OK y If the modu...

Страница 78: ...ped to a network module and adds that module to the Monitor module list Select Load Configured COM Port in the Monitor context menu Settings Settings is used to determine what items of information are monitored how often the information is refreshed and how notification of events will occur Select Settings in the Monitor context menu Note that this menu may also be opened by right clicking Monitor...

Страница 79: ...you may select which items of information will be monitored General Settings In the General Settings tab you may select how often the module is monitored which is known as the refresh rate The default is 3 seconds RSPSupply 1 888 532 2706 www RSPSupply com http www RSPSupply com p 9766 Moxa NE 4120A aspx ...

Страница 80: ...ctivate and deactivate monitoring of the modules in the module list Monitoring is not active until Go has been selected in the Monitor context menu Note that this menu may also be opened by right clicking Monitor in the navigation panel or by right clicking the desired module The list in the monitor window will now be live and the selected items will be refreshed as configured RSPSupply 1 888 532 ...

Страница 81: ...tor settings If the module s connection is restored another message will be displayed as configured in the Monitor settings To suspend monitoring select Stop from the Monitor context menu Port Monitor Functions Port Monitor functions are very similar to Monitor functions but with many additional items that can be monitored as shown below RSPSupply 1 888 532 2706 www RSPSupply com http www RSPSuppl...

Страница 82: ...e PC is rebooted the COM mappings will still be in effect after booting up Add and Remove Target Add Target searches for modules over the network to add to the COM Mapping module list Remove Target deletes the selected items from the COM Mapping COM port list Please refer to the Monitor section earlier in this chapter for additional details on Add Target and Remove Target COM Settings COM Settings...

Страница 83: ...Ports is checked when using mapping to multiple modules When checked this option automatically assigns available COM numbers sequentially If not checked each module will have to be manually assigned a COM port number Advanced Settings In the Advanced Settings tab you may configure how serial data is transmitted over the network RSPSupply 1 888 532 2706 www RSPSupply com http www RSPSupply com p 97...

Страница 84: ...l COM driver automatically flushes the buffer when it receives the PurgeComm function call When disabled applications that use the Win32 PurgeComm function may perform markedly slower because the Real COM driver will repeatedly query the module to make sure no data is queued in the buffer instead of just flushing the buffer The repeated queries can cause a performance hit due to the additional tim...

Страница 85: ...pping in the navigation panel or by right clicking the desired module IP Address Report Functions IP Address Report functions are used to view IP address reports from appropriately configured modules When monitoring is activated Network Enabler Administrator listens for IP address reports on a UDP port number which may be configured under Settings in the IP Address Report context menu Any IP addre...

Страница 86: ...dule This chapter includes the following sections Linux Real TTY Drivers Basic Procedures Hardware Setup Installing Linux Real TTY Driver Files Mapping TTY Ports Removing Mapped TTY Ports Removing Linux Driver Files UNIX Fixed TTY Driver Installing the UNIX Driver Configuring the UNIX Driver RSPSupply 1 888 532 2706 www RSPSupply com http www RSPSupply com p 9766 Moxa NE 4120A aspx ...

Страница 87: ...ling Linux Real TTY Driver Files The instructions for installing the Linux Real TTY drivers are as follows 1 Obtain the driver file from the included CD ROM or from http www moxa com 2 Log in to the console as a super user root 3 Execute cd to go to the root directory 4 Copy the driver file npreal2xx tgz to the directory 5 Execute tar xvfz npreal2xx tgz to extract all files into the system 6 Execu...

Страница 88: ...with data ports from 950 to 965and command ports from 966 to 981 Mapping tty ports manually To map tty ports manually you may execute mxaddsvr and manually specify the data and command ports as in the following example cd usr lib npreal2 driver mxaddsvr 192 168 3 4 16 4001 966 In this example 16 tty ports will be added all with IP 192 168 3 4 with data ports from 4001 to 4016 and command ports fro...

Страница 89: ... the UNIX driver are as follows 1 Log in to UNIX and create a directory for the Moxa TTY To create a directory named usr etc execute the command mkdir p usr etc 2 Copy moxattyd tar to the directory you created If you created the usr etc directory above you would execute the following commands cp moxattyd tar usr etc cd usr etc 3 Extract the source files from the tar file by executing the command t...

Страница 90: ...ou configured in moxattyd cf as in the following example ts 2 respawn usr etc moxattyd moxattyd t 1 Device naming rule For UnixWare 7 UnixWare 2 1 x and SVR4 2 use pts n For all other UNIX operating systems use ttyp n Starting moxattyd Execute the command init q or reboot your UNIX operating system Adding an additional server 1 Modify the text file moxattyd cf to add an additional server User may ...

Страница 91: ...P Codes and Parameters Operation Flow Chart Configuring Trigger Type Network Enabler Administrator Telnet Console Web Console Serial Console Entering Serial Command Mode Trigger Type Serial Port Parameters Comments Exiting Serial Command Mode Determining the Active Mode Serial Command Examples Example 1 Get Model Name Using HW Trigger Example 2 Change IP Address Using HW Trigger Example 3 Get IP M...

Страница 92: ... transmitted in the following order Head Command Code OP Code Parameter and Tail ATTENTION The carriage return character is used as the last byte or Tail for each data frame an additional line feed character is not required For most systems the Enter key typically sends a carriage return character and a line feed character CR is used to refer to the carriage return character in most terminal emula...

Страница 93: ...en successfully YTL CR Available OP Codes and Parameters are described in the next section OP Codes and Parameters Basic Commands OP Code Parameter Comments BS read only serial number BV read only firmware version BN alphanumeric max 15 bytes server name BW 0 disable 1 enable web console BT 0 disable 1 enable Telnet console BP alphanumeric max 10 bytes password BR 1 restart only 2 save restart wri...

Страница 94: ...168 127 1 accessible IP address 09 AJ xxx xxx xxx xxx e g 192 168 127 1 accessible IP address 10 AK xxx xxx xxx xxx e g 192 168 127 1 accessible IP address 11 AL xxx xxx xxx xxx e g 192 168 127 1 accessible IP address 12 AM xxx xxx xxx xxx e g 192 168 127 1 accessible IP address 13 AN xxx xxx xxx xxx e g 192 168 127 1 accessible IP address 14 AO xxx xxx xxx xxx e g 192 168 127 1 accessible IP addr...

Страница 95: ...sk 14 Ao xxx xxx xxx xxx e g 255 255 255 0 accessible IP netmask 15 Ap xxx xxx xxx xxx e g 255 255 255 0 accessible IP netmask 16 Operation Mode OP Code Parameter Comments OM 0 Real COM 1 TCP server 2 TCP client 3 UDP mode operation mode TCP Server Mode OP Code Parameter Comments TM 1 4 max number of connections TL 0 65535 local TCP port TT 0 99 minutes TCP alive check time TI 0 65535 ms inactivit...

Страница 96: ...ation IP address 2 CC xxx xxx xxx xxx e g 192 168 1 1 destination IP address 3 CD xxx xxx xxx xxx e g 192 168 1 1 destination IP address 4 C1 0 65535 destination port 1 C2 0 65535 destination port 2 C3 0 65535 destination port 3 C4 0 65535 destination port 4 CT 0 99 minutes TCP alive check time CI 0 65535 ms inactivity time CX 0 no delimiter 1 enable 1 character delimiter 2 enable 2 character deli...

Страница 97: ...ation IP address 2 port U3 0 65535 destination IP address 3 port U4 0 65535 destination IP address 4 port UX 0 no delimiter 1 enable 1 character delimiter 2 enable 2 character delimiter number of characters to use as delimiter UY ASCII character in hex code i e A1 for character 0xA1 character to use for delimiter 1 UZ ASCII character in hex code i e A1 for character 0xA1 character to use for delim...

Страница 98: ...ernet Function Poll DIO 0 Status Check Serial Port Data Enter Serial Command Process Command Exit Serial Command Mode and Restart DIO 0 Low HW Trigger On 3 character Trigger Detected DIO 0 High HW Trigger Off Normal Data Detected SW Trigger HW Trigger ATTENTION This flowchart represents a continual process You can start trace out a logical flow by starting anywhere on the chart Diamonds represent ...

Страница 99: ...4000 bps to 55000 bps This is because all data received through serial port 0 will be parsed In other words the system must continuously check the serial port data for the SW Trigger characters This is not an issue for hardware versions 2 1 and later Network Enabler Administrator To use Network Enabler Administrator to configure the trigger type you will need to find the module and open its config...

Страница 100: ...led Only one type of trigger may be selected hardware and software trigger may not be used at the same time Select Activated by Character to trigger serial command mode through the serial port In this case you will also need to enter the three characters in HEX code that will be used as the trigger characters RSPSupply 1 888 532 2706 www RSPSupply com http www RSPSupply com p 9766 Moxa NE 4120A as...

Страница 101: ...in order to select and enable the trigger type hardware or software If software triggering is selected the three trigger characters may be configured using option 2 For the changes to take effect you will need to go back to the main menu save the configuration and restart the module If you quit without saving any changes you made to the configuration will be lost RSPSupply 1 888 532 2706 www RSPSu...

Страница 102: ...start the module for any changes to effect Serial Console To access the serial console connect the module s serial console port P1 to your PC s serial port and then use a terminal emulator program to enter the serial console Please refer to the Serial Console section in Chapter 5 for details on how to open the serial console Once the serial console is open it functions exactly the same as if conne...

Страница 103: ...ial command mode We guarantee that when characters are spaced by more than 120 ms the data will be treated as normal data instead of serial command mode trigger characters When characters are separated by between 80 ms and 120 ms the system will not be able to determine if the transmission is regular data or a serial command mode trigger Serial Port Parameters For testing purposes you will likely ...

Страница 104: ...he configuration all changes will be lost when the module is powered on again y Exit by Command OP Code BR There are two options when manually exiting by serial command Save Restart must be selected if you want to save any of the changes that were made during the serial command mode session Restart will restart the module without saving any of the changes y Auto Restart If 5 minutes elapses withou...

Страница 105: ...l device Module s reply CR E CR 0x3C 0x45 0x0D CR LF 0x0D 0x0A E CR 0x3C 0x45 0x0D Error command 3 CR 0x3C 0x33 0x0D Therefore you can determine if a module is in serial command mode by sending CR to the module seeing if the module replies with E CR Serial Command Examples For the following examples the module should be installed onto the evaluation board and the evaluation board s serial port P0 ...

Страница 106: ...ntrol DIO 0 s state Please refer to Chapter 3 for information on configuring the DIP switches for use with DIO channels STEP 5 HyperTerminal displays E indicating that the module is in serial command mode STEP 6 Type WNP192 168 127 253 in HyperTerminal and press Enter which sets the module s IP address to 192 168 127 253 STEP 7 HyperTerminal displays YNP indicating that the IP address command was ...

Страница 107: ...trigger characters used to enter serial command mode 2B 2B 2B in this example STEP 5 HyperTerminal displays E indicating that the module is in serial command mode STEP 6 Type WTL4001 in HyperTerminal and press Enter which sets the TCP server port number to 4001 STEP 7 HyperTerminal displays YTL indicating that the TCP server port command was executed successfully STEP 8 Type WBR2 in HyperTerminal ...

Страница 108: ...or Private Ports are those from 49152 through 65535 The Well Known Ports are assigned by IANA and on most systems can only be used by system processes or by programs executed by privileged users The following table shows famous port numbers among the well known port numbers For more details please visit the IANA website at http www iana org assignments port numbers TCP Socket Application Service 0...

Страница 109: ...ter server 39 Resource Location Protocol 42 Host name server names server 43 Whois nickname 49 Login Host Protocol Login 53 Domain Name Server domain 69 Trivial Transfer Protocol TETP 70 Gopler Protocol 79 Finger Protocol 80 World Wide Web HTTP 107 Remote Telnet Service 111 Sun Remote Procedure Call Sunrpc 119 Network news Tcanster Protocol NNTP 123 Network Time protocol nnp 161 SNMP Simple Networ...

Страница 110: ...00 Series modules over the network The NE 4100 Series library can be found in the folder NECI_ LIB on the Documentation and Software CD included with each module For more information refer to NECI chm in that directory as well as examples located in NECI_LIB VC ConsoleExample RSPSupply 1 888 532 2706 www RSPSupply com http www RSPSupply com p 9766 Moxa NE 4120A aspx ...

Страница 111: ...n the expiration time has been reached the process will repeat and module will send another DHCP request to the DHCP server Therefore a module may end up using more than one IP address while it is connected to the network The module has a built in IP address report function that will send its IP data to a specific IP address and port number when it is not using a Static or fixed IP address The IP ...

Страница 112: ...sk 7 4 default gateway 8 4 firmware version little endian DWORD Version 4 3 1 0x04030100 9 4 AP ID little endian DWORD see table below Hardware and AP ID Each model is assigned a Hardware ID and AP ID as shown below Product Hardware ID AP ID NE 4110S 0x4119 0x80004100 NE 4120S 0x4129 0x80004100 NE 4100T 0x4109 0x80004100 NE 4110A 0x4118 0x80004100 NE 4120A 0x4128 0x80004100 Example The following e...

Страница 113: ...yte is a code that is used by the module to report errors The fourth byte is the number of bytes that follows the header and will depend on the command or response In the event of an error the module will return the entire command as its response but with the third byte changed according to the following status error codes 1 Command error may be unknown 2 Version error not supported by this versio...

Страница 114: ...this byte is only used in the module s response 4 Header 1 data length fixed 5 Data 0 1 2 3 desired DIO channel For example the 5 byte command sequence 1 2 0 1 0 requests the status of DIO 0 Response Byte Descriptor Value Description 1 Header 1 command fixed 2 Header 2 version fixed 3 Header 0 1 2 3 4 5 6 0xFF command status error code 0 okay 4 Header 3 data length fixed 5 Data 0 1 2 3 desired DIO...

Страница 115: ... 0 1 0 set to input mode 1 set to output mode 7 Data 0 1 this byte is ignored for input mode 0 set to low 1 set to high For example the 7 byte command sequence 2 2 0 3 0 0 0 requests that DIO 0 be set to digital input mode Response Byte Descriptor Value Description 1 Header 2 command number fixed 2 Header 2 version fixed 3 Header 0 1 2 3 4 5 6 0xFF command status error code 0 okay 4 Header 3 data ...

Страница 116: ...th fixed 5 Data 0 1 2 starting DIO channel number 6 Data 1 2 3 ending DIO channel number This command requests the status of a range of DIO channels specified in bytes 5 and 6 For example the 6 byte command sequence 5 2 0 2 0 2 requests the status of DIO channels 0 through 2 Response Byte Descriptor Value Description 1 Header 5 command number fixed 2 Header 2 version fixed 3 Header 0 1 2 3 4 5 6 0...

Страница 117: ...high status C Code Example BOOL ReadMultipleDIO int start int end int mode int status DIOPacketStruct packet packet header command 5 Read Multiple DIO Commands packet header version 2 DIO protocol command version packet header length 2 data length packet data 0 start start of the DIO number packet data 1 end end of the DIO number send SocketFd char packet sizeof DIOHeaderStruct 2 0 Send TCP packet...

Страница 118: ...s specified in bytes 5 and 6 The length of the command depends on the number of channels to be written For example the 10 byte command 6 2 0 6 0 1 0 0 1 1 requests DIO 0 be set to digital input mode and low status and DIO 1 be set to digital output mode and high status If you wanted to include a change of DIO 2 to digital output mode and low status the 12 bye command sequence would be 6 2 0 8 0 2 ...

Страница 119: ... 12 Data 0 1 4th requested DIO channel optional 0 channel status has been changed to low 1 channel status has been changed to high For example the 8 byte response 6 2 0 4 0 0 1 1 indicates that DIO 0 has been changed to input mode and low status and DIO 1 has been changed to output mode and high status C Code Example void WriteMultipleDIO int start int end int mode int status DIOPacketStruct packe...

Страница 120: ...pInSrcQuenchs SysServices ifPhysAddress ipInUnknownProtos IcmpInRedirects ifAdminStatus ipInDiscards IcmpInEchos ifOperStatus ipInDelivers IcmpInEchoReps ifLastChange ipOutRequests IcmpInTimestamps ifInOctets ipOutDiscards IcmpTimestampReps ifInUcastPkts ipOutNoRoutes IcmpInAddrMasks ifInNUcastPkts ipReasmTimeout IcmpOutMsgs ifInDiscards ipReasmReqds IcmpOutErrors ifInErrors ipReasmOKs IcmpOutDest...

Страница 121: ...Ports tcpRtoMin snmpOutPkts UdpInErrors tcpRtoMax snmpInBadVersions UdpOutDatagrams tcpMaxConn snmpInBadCommunityNames UdpLocalAddress tcpActiveOpens snmpInASNParseErrs UdpLocalPort tcpPassiveOpens snmpInTooBigs tcpAttempFails snmpInNoSuchNames Address Translation MIB tcpEstabResets snmpInBadValues AtIfIndex tcpCurrEstab snmpInReadOnlys AtPhysAddress tcpInSegs snmpInGenErrs AtNetAddress tcpOutSegs...

Отзывы: