The text of a manual · part 29 of 41
E-terminals Programming manual: 18 Network communication, pages 221 to 229
Pages 221 to 229 of 335, from E-terminals Programming manual
The original document is the PDF (4.1 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Beijer Electronics AB E200
Page 221
Network communication Terminal 2 (192.168.1.2)
Terminal 2 is a Client and can access the other Server. It can also access its local controller 2. This means that it has access to controller 1 and controller 2.
210
Page 222
Network communication
18.2 Network communication via ETHERNET You need one of the expansion cards, IFC ETTP or IFC ETCX, in the terminals to connect the terminals to a TCP/IP network via ETHERNET. IFC ETTP is used for connection via pair twisted cable and IFC ETCX is used for connection via coaxial cable.
How to make a connection Install the IFC ETTP or IFC ETCX card according to the manual for this cards. Select Peripherals in the Setup menu. Mark the selected expansion slot and click the right mouse button. Select network card. Mark TCP/IP connection and keep the left mouse button pressed. Then drag the mouse to selected expansion card and release the mouse button.
211
Page 223
Network communication
Settings The settings for the serial connection are made in the dialog shown when the connection is selected and you press Edit....
Connection name Enter freely a name of the connection. The parameter doesn’t need to be stated.
Host configuration Manual means that the settings of the TCP/IP parameters made in the dialog are used. The other alternatives mean that the terminal provides one or several of the TCP/IP parameters from a network server. IP-adress
State the IP address of your node. For information about which IP address to use please refer to your network manager or to the RFC’s from the Internet committee. If you are using a local network between the terminals we recommend you use the addresses 192.168.1.1 – 192.168.1.254. Subnet mask
State your network identity. Gateway
State the network unit in the local network that can verify the identifiers for the other networks on Internet. Primary DNS and Secondary DNS
State the servers containing information about a part of the DNS data base.
212
Page 224
Network communication
ETHERNET connections The section below shows three examples of ETHERNET connections between two terminals.
Connection between two terminals via pair twisted cable (TP) Node 2
Node 1
1 2 3 6
3 6 1 2
The cable has RJ45 connectors. The cable is a CAT5 (cross coupled) pair twisted cable, screened or not screened. Note! If the communication doesn’t work properly, and the LED marked Link on the IFC ETTP card doesn’t light, connections 3 and 6 are probably switched.
TCP/IP settings in the nodes Node 1
Node 2
213
Page 225
Network communication
Connection between more than two terminals via pair twisted cable (TP) HUB
1 2 3 6
1 2 3 6
The maximal length between the terminal and the HUB is 100 m. The maximal number of terminals per HUB are limited by the number of connections on the HUB. The cable has RJ45 connectors. The cable is a CAT5 pair twisted cable, screened or unscreened. TCP/IP settings in the nodes Node 1
214
Node 2
Page 226
Network communication
Connection via coaxial cable
HUB
Repeater
In the network the coaxial cable RG58 is used. There must be bus endings of 50 Ohm. Several coaxial cables can be connected with repeaters to get longer networks. The network will then comprise different segments. Segment 2
Segment 1
Repeater
Repeater
The maximum length of a segment is 185 m and the maximum number of units/segment is 30. Four repeaters can be serial-connected, which means that five segments may be serial connected. Only three of the segments can have units connected. This means that there must be at least two empty segments in the network. For more information see RFC on the Internet.
215
Page 227
Network communication TCP/IP settings in the nodes Node 1
Node 2
18.3 Serial network communication How to make a connection Select Peripherals in the Setup menu. In the dialog Peripheral configuration you mark TCP/IP connection and keep the left mouse button pressed. Then drag the mouse to RS-232 or RS-422 and release the mouse button.
216
Page 228
Network communication
Settings The settings for the serial connection are made in the dialog shown when the connection is selected and you press Edit....
Connection name
Enter freely a name for the connection. The parameter doesn’t need to be stated. Serial protocol
For serial communication you can select protocol PPP. User name
State the username used at login. Password
State the password used at login. Connect signal
Digital signal which establish the connection when it is set and disconnect when it is reset. Connected signal
Analog register which can have the following status. 0 1 2 3 7
Disconnected (PPP Client) Waiting for a connection (PPP Server) Connected as a PPP Client Connected as a PPP Server Connection error
217
Page 229
Network communication Use logon script
The function is used to automatize a serial login. The script will look different depending on which server and modem you connect to. The terminal support the following commands. 1. WAIT: Text , x 2. SEND: Text
Wait for the text Text for x seconds. x must not be stated Sends the text Text
3. LABEL: Label
Label become a reference point in the script.
4. ONERR: Label
Jumps Label when an error occur in previous command.
5. MESSAGE: Message Shows a message box with the message Message. 6. END:
End the script.
7. SLEEP: x
Sleeps in x seconds.
8. COUNTER: y
Count up a counter each time the script passes “COUNTER:”. If the value y is reached an error occur. This error is handled by “ONERR:”.
Variables: %USERNAME
Compare with the names in accounts.
%PASSWORD
Compare with the passwords in accounts.
Example 1: WAIT: login:, 10 SEND: JOHN WAIT: password:,10 SEND: HELLO
218