FP | 7.1 Details on the FP |
|
|
The individual HTML commands can be entered (exactly as described above) into the HTML code of the page and then adjusted respectively. Some HTML editors provide additional help and automatic generation for creating submit fields. The commands have the following significance:
ACTION="/plcpost" |
| Enter precisely like this. CGI function of the FP |
| ||
|
| |
|
|
|
METHOD="POST" |
| Enter precisely like this. Method of the CGI call. |
|
| |
TARGET="SUBWIN" |
| Enter precisely like this. Display the result in a separate |
| window. | |
|
| |
ONSUBMIT="opensubwin(200,100)" |
| Enter precisely like this. Java Script call and window |
| size. | |
|
| |
Enter DT204 |
| Variable text will be displayed as seen. |
|
|
|
NAME="DT204_5_u" |
| Specification of the memory address in the PLC and |
| interpretation of the input format. | |
|
| |
SIZE="6" |
| Width of the input window in number of characters. |
|
| |
VALUE="{DT204_5_u}" |
| Initial value of the input field. |
| field. | |
|
| |
Only for the definition of buttons in case A): |
| |
|
|
|
TYPE="submit" |
| Enter precisely like this. Function of the [SUBMIT] |
| buttons. | |
|
| |
NAME="Button" |
| Enter precisely like this. Name of the [SUBMIT] button. |
|
| |
VALUE=" set " |
| Variable labeling of the [SUBMIT] buttons. |
|
|
7.1.12.1Examples on PLC Data Entries via HTML Page
a)Decimal numbers
Entry format | User entry | Data in PLC register |
DT201_16_u | 12 | DT201= 12 (0C hex) |
|
|
|
DT201_16_d | DT201= | |
DT202_16_ld | 1234567 | DDT202=1234567 (12D687hex) |
|
|
|
DT202_16_f | 123.4 | DDT202=123.4 (42F6CCCD hex) |
|
|
|
DT202_16_f | 1.2e4 | DDT202=12000 (463B8000 hex) |
|
|
|
b) | Strings |
|
|
|
| Entry format | User entry | Data in PLC register | |
| DT602_16_S | 1234 | ||
|
|
|
|
|
| DT602_16_S | 123 | ||
|
|
|
|
|
| DT600_16_s | 1234 | DT601=4 | |
| DT602_16_c | ABC | DT602="A?" (? is unchanged) | |
|
|
|
|
|
c) | Hex entries: |
|
|
|
| In the latest version also the format type characters 'x' and 'X' are allowed for | |||
| hexadecimal PLC data entries. Hex data entries are possible for | |||
| (name="DT200_6_X") and | |||
|
|
|
|
|
| Entry format | User entry | Data in PLC register |
|
| DT201_16_X | 7b | DT201= 123 (007B hex) |
|
|
|
|
|
|
89