Bit button (image) -11 – IDEC MicroSmart Pentra User Manual

Page 119

Advertising
background image

W

EB

S

ERVER

CPU M

ODULE

U

SER

S

M

ANUAL

FC9Y-B1278

12-11

12: W

EB

S

ERVER

Bit Button (Image)

When data register monitoring is enabled, and the following string is included in an html page, that string is replaced with
specified images and the images are switched according to the bit state read from the Web server CPU module. The
system library is responsible for reading or writing data via CGI.

{{Read/Write, Device Type, Device Number, Driver Number, Network Number, Data Type, Off State Image, On State
Image}}

Example: {{R,m,123,0,0,BIT,./BIT_IMG_OFF.jpg,./BIT_IMG_ON.jpg}}

Read/Write: Specify R or W. When R is selected, the specified on or off state picture is shown according to the state of the
specified bit read from the CPU module. When W is selected, the bit state can be toggled.
Device Type: Specify the device type. m (internal relay) can be specified.
Device Number: Specify the device number in decimal.
Driver Number: Reserved for the system. Specify 0.
Network Number: Reserved for the system. Specify 0.
Data Type: Specify BIT.
Off State Image: Specify the image to show when the bit state is off with the relative path.
On State Image: Specify the image to show when the bit state is on with the relative path.

Example: When using Numerical Display, if D2058 is 49910 (C2F6h) and D2059 is 59768 (E978h), those data register
values are shown as follows on web browser:

{{W,D,2058,0,0,HEX-W}}: C2F6
{{W,D,2058,0,0,HEX-D}}: C2F6E978
{{W,D,2058,0,0,DEC-W}}: 49910
{{W,D,2058,0,0,DEC-I}}: -15626
{{W,D,2058,0,0,DEC-L}}: -1024005768
{{W,D,2058,0,0,DEC-F}}: -123.456

If the formats of strings are invalid, those strings are not replaced with values read from the CPU module. If the
communication with the CPU module fails or the specified device does not exist, device values are shown as "----."
When W is specified as Read/Write, device data can be written to the CPU module on web browser. For example, when
you click on a monitored value, a dialog box appears. Enter a new value and click OK button. The new value is written to
the CPU module.

Note when using format strings:
The system library considers all strings between “{{“ and “}}” as format strings for monitoring. Do not insert unnecessary
characters, such as spaces, line breaks, or HTML tags, between the characters of the format string. For example, the
following string is invalid and the data register is not monitored:

{{<em>W,D,2058,0,0,HEX-D</em>}}

To emphasize the monitored value, the above string can be described as follows:

<em>{{W,D,2058,0,0,HEX-D}}</em>

Advertising