Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 34 of 41

E-terminals Programming manual: 19 Network functions in the terminal, pages 263 to 271

Pages 263 to 271 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 263

Network functions in the terminal

CGI script (common gateway interface) The common gateway interface (CGI) is a standard way for a Web server to pass a Web user’s request to an application program and to receive data back and forward to the user. When the user requests a Web page (for example, by clicking on a highlighted word or entering a Web site address), the server sends back the requested page. When a user fills out a form on a Web page and send it in, it usually needs to be processed by an application program. The Web server typically passes the form information to a small application program that processes the data and may send back a confirmation message. This method for passing data back and forth between the server and the application is called the common gateway interface (CGI). It is part of the Web’s HTTP protocol. To change values in the terminal we support the following CGI script:

252

Name

Parameters

Description

Example set_date.fn

Date format e.g. MM/DD/ YY YY-MM-DD If no format is state the terminal setting is used

Used together with FORM to set the date in the terminal.

<FORM ACTION="http://<!-#exec cgi="/get_ipaddr.fn"-->/ set_date.fn" METHOD="POST"> <INPUT SIZE=10 MAXLENGTH=10 NAME="YY:MM:DD"> <INPUT TYPE="submit" VALUE="Submit"> </FORM> set_time.fn

Time format e.g. HH:MM:SS HH:MM If no format is state the terminal setting is used

Used together with FORM to set the time in the terminal.

<FORM ACTION="http://<!-#exec cgi="/get_ipaddr.fn"-->/ set_time.fn" METHOD="POST"> <INPUT SIZE=10 MAXLENGTH=10 NAME="HH:MM:SS"> <INPUT TYPE="submit" VALUE="Submit"> </FORM>

Page 264

Network functions in the terminal Name

Parameters

Description

Example set_device.fn

XY X = device Y = presentation format (see separate table) e.g. D0L+ D5SH

Used togehter with FORM to set an device in the PLC system.

<FORM ACTION="http://<!-#exec cgi="/get_ipaddr.fn"-->/ set_device.fn" METHOD="POST"> <INPUT SIZE=10 MAXLENGTH=10 NAME="D0L"> <INPUT TYPE="submit" VALUE="Submit"> </FORM> set_mode.fn

RUN PROG SETUP TRANSFER

Used togehter with FORM to set the terminal mode.

<FORM ACTION="http://<!-#exec cgi="/get_ipaddr.fn"-->/ set_mode.fn" METHOD="POST"> <SELECT NAME="MODE"> <OPTION VALUE="RUN">Run <OPTION VALUE="PROG">Prog <OPTION VALUE="SETUP">Setup <OPTION VALUE="TRANSFER">Transfer </SELECT> <INPUT TYPE="submit" VALUE="Submit"> </FORM>

253

Page 265

Network functions in the terminal Name

Parameters

Description

Example push_key.fn

(see separate table)

Used to simulate pressing a a on the terminal.

<FORM ACTION="http://<!-#exec cgi="/get_ipaddr.fn"-->/ push_key.fn" METHOD="POST"> <SELECT NAME="F2"> <OPTION VALUE="SET">Set <OPTION VALUE="RESET">Reset <OPTION VALUE="TOGGLE">Toggle </SELECT> <INPUT TYPE="submit" VALUE="Submit"> </FORM> <FORM ACTION="http://<!-#exec cgi="/get_ipaddr.fn"-->/ push_key.fn" METHOD="POST"> <INPUT SIZE=1 MAXLENGTH=1 NAME="Key"> <INPUT TYPE="submit" VALUE="Submit"> </FORM>

Presentation format for set_device.fn Name

254

Description

None

Sets the value as signed 16-bit

+

Sets the value as unsigned 16-bit

L

Sets the value as signed 32-bit

L+

Sets the value as unsigned 32-bit

RB

Sets the value as 32-bit float BCD (MELSEC, SIMATIC)

RF

Sets the value as 32-bit IEEE float

RD

Sets the value as 32-bit IEEE float without exponent

SB

Sets the value as 16-bit BCD

LB

Sets the value as 32-bit BCD

SH

Sets the value as 16-bit HEX

LH

Sets the value as 32-bit HEX

ST

Sets a number of registers as a string

Page 266

Network functions in the terminal Parameters for push_key.fn Parameter

Description

Example

KEY

Can state the values: A-Z 0-9 ACK LIST MAIN PREV BACKSPACE ENTER UP DOWN LEFT RIGHT

<FORM ACTION="http://<!--#exec cgi="/ get_ipaddr.fn"-->/push_key.fn" METHOD="POST"> Key = <SELECT NAME="Key"> <OPTION VALUE="ENTER">Enter <OPTION VALUE="A">A <OPTION VALUE="B">B <OPTION VALUE="1">1 <OPTION VALUE="2">2 <OPTION VALUE="3">3 <OPTION VALUE="UP">Up <OPTION VALUE="DOWN">Down <OPTION VALUE="LEFT">Left <OPTION VALUE="RIGHT">Right <OPTION VALUE="PREV">Prev </SELECT> <INPUT TYPE="submit" VALUE="Submit"> <P> </FORM>

F1-F22

Can state the values: SET RESET TOGGLE

<FORM ACTION="http://<!--#exec cgi="/ get_ipaddr.fn"-->/push_key.fn" METHOD="POST"> <SELECT NAME="F2"> <OPTION VALUE="SET">Set <OPTION VALUE="RESET">Reset <OPTION VALUE="TOGGLE">Toggle </SELECT> <INPUT TYPE="submit" VALUE="Submit"> </FORM>

255

Page 267

Network functions in the terminal

Example on a Web page with SSI and CGI script: <HTML> <FORM ACTION="http://<!--#exec cgi="/get_ipaddr.fn"-->/ set_date.fn" METHOD="POST"> Set date here (YY:MM:DD): <INPUT SIZE=10 MAXLENGTH=10 NAME="YY:MM:DD" VALUE="<!--#exec cgi="/get_date.fn"-->"> <INPUT TYPE="submit" VALUE="Submit"> <P> </FORM> <FORM ACTION="http://<!--#exec cgi="/get_ipaddr.fn"-->/ set_time.fn" METHOD="POST"> Set time here (HH:MM:SS): <INPUT SIZE=10 MAXLENGTH=10 NAME="HH:MM:SS" VALUE="<!--#exec cgi="/get_time.fn"-->"> <INPUT TYPE="submit" VALUE="Submit"> <P> </FORM> <FORM ACTION="http://<!--#exec cgi="/get_ipaddr.fn"-->/ set_device.fn" METHOD="POST"> D0 = <INPUT SIZE=10 MAXLENGTH=10 NAME="D0" VALUE="<!--#exec cgi="/get_device.fn D0"-->"> <INPUT TYPE="submit" VALUE="Submit"> </FORM> </HTML>

256

Page 268

Network functions in the terminal

Save HTML files with FTP To save HTML files in the terminal you use a standard FTP client software (see the section FTP server). The files are stored in the HTML directory in the terminal. The name of the files must be in DOS 8.3 format i.e. the name can contain max 8 characters and the extension must be HTM. Note! The file INDEX.HTM must be available.

257

Page 269

Network functions in the terminal

19.5 Recommendations and limitations for network communication To make the communication between terminals and controller systems in a terminal network (BDTP network) quick and efficient it is important to optimize the transfer of signals in the network. Read the chapter “Efficient communication” on page 26 and follow the rules described to optimize the network functionality in the terminals. Maximum number of signals that can be transferred in a terminal network are 3000.

Example A terminal network consist of three clients and one server. Each client have access to 1000 signals which means that the server provide the clients with 3000 signals. This is valid even if the address areas for the signals in each client are in accordance with each other. Accordingly it is not possible to transfer further signals in this terminal network.

Transparent mode To be able to make the function Transparent mode (see also the chapter Communication) work in a terminal network with communication via the TCP/IP protocol the following demands must be carried out. – The driver and its programming tool must support communication in Transparent mode. For information we refer to the manuals for the driver and controller system respective and also the chapter Communication in this manual. – The PC program COM/IP from Tactical Software which is available on the Web address http://www.tactical-sw.com/Products/CIM_IP/com_ip.html must be used in the PC communicating with the controller system in Transparent mode via the TCP/IP network. The programming tools MELSEC MEDOC and MELSEC MEDOC plus for PLC systems from Mitsubishi Electric supports Transparent mode communication in TCP/IP network with MELSEC PLC systems according to the following table. Programming tool

258

PLC system

MELSEC MEDOC

All MELSEC PLC-system except QnA-CPU and QnA-C24

MELSEC MEDOC plus

MELSEC A C24, MELSEC FX-series

Page 270

Network functions in the terminal

No protocol mode The function No protocol mode (see the chapter Communication), when the terminal is used as communication interface, is not recommended to be used in major terminal networks (BDTP networks). A major BDTP network is a network where many signals are transferred between server and clients. When the terminal is used as communication interface control registers and control signals are transferred and they affect the communication time and the performance of the network. See also the chapter “Efficient communication” on page 26.

Packing of signals To make the communication between terminals and controller systems in a terminal network (BDTP network) quick and efficient it is important to optimize the transfer of signals in the network. Read the chapter “Efficient communication” on page 26 and follow the rules described to optimize the network functionality in the terminals. This is valid for all stations in a terminal network. If you don’t use packing of signals the time between updates of stations in the network will increase.

Alarm handling The terminal network is a Client/Server network. Servers provide data, for example alarm signals, to Clients. Many different signals affects the communication time between terminals and controller systems in the network, this means that it is expedient to limit the number of signals affecting the communication. For more information see the chapter “Efficient communication” on page 26. The number of alarm signals in the network can not exceed what one server can handle in the network. One server can handle between 100 to 300 alarms, depending on application and terminal, consequently can the network not contain more than 100 to 300 alarms.

259

Page 271

Network functions in the terminal

260