IDEC FC6A-C16K1CE Communications Manual page 237

Fc6a series microsmart all-in-one type
Hide thumbs Also See for FC6A-C16K1CE:
Table of Contents

Advertisement

The string that can be entered and the display in the browser differs by each string type.
String Type
STR_HOSTNAME
Used when reading or writing a host name.
STR_EMAILADR
Used when reading or writing an e-mail address.
STR_PASSWORD
Used when entering a password. The string is masked.
STR_ASCII
Used when reading or writing an ASCII string other than those listed above.
When STR_HOSTNAME and STR_EMAILADR are specified as read/write type W, a check is performed to determine if the entered
characters and string are in the appropriate format for a host name or e-mail address, and the data is only written if they are
appropriate. The format is not checked for data that was read.
When STR_PASSWORD is set, masked characters determined by the web browser are displayed, not the actual characters. The
characters entered in the write dialog box are also masked.
Notes:
Strings that do not follow the metacharacter format will not be replaced with strings by JavaScript.
If communication with the FC6A Series MicroSmart fails or the specified device does not exist, the strings are replaced with "-".
The strings that had been replaced with the metacharacters (set to read/write type W) can be written to corresponding devices with the web
browser.
Strings are set as continuous data registers of 1 word or more. 2 bytes of data are 1 word and they are set from upper byte to lower byte in
order. Set 00h at the end of the string.
When STR_ASCII, STR_HOSTNAME, or STR_EMAILADDR is set and the starting byte of the data register that was read is 00h, "blank" is
displayed as substitute text.
Notes:
When reading, the set maximum size of devices is read and the string is replaced from the starting byte up to 00h. The number of devices
that are read in words is the maximum size / 2 words (rounded up). If 00h is not included in the data that was read, the string is replaced as
if 00h is at maximum size + 1 byte. Note that the maximum size is set in bytes but reading is performed in words.
When writing, the string entered in the dialog box is written. The data after the end of the entered string is filled with 00h up to the character
at maximum size + 1. The number of devices that are written in words is (maximum size + 1) / 2 words (rounded up). If the byte at
maximum size + 1 is an odd number, the final word is written as 0000h. If a blank string is set in the dialog, 00h is written to all bytes of
data. Note that the maximum size is set in bytes but writing is performed in words.
Example
When D2058 is 'a' 'b' (6162h), D2059 is 'c' 'd' (6364h), and D2060 is 'e' 'f' (6566h) , the metacharacters are replaced as follows.
{{W,D,2058,0,0,STR_ASCII,3}} →
{{W,D,2058,0,0,STR_ASCII,4}} →
When you click the strings in the previous examples, a dialog box will be displayed. The string entered in this dialog box will be
reflected in the devices.
Example of written data when the maximum number of bytes is odd
For {{W,D,2058,0,0,STR_ASCII,3}}, 2 words of data will be written.
Data Register
Before writing
Write A
Write AB
Write ABC
FC6A S
abc
abcd
ASCII
Value (hexadecimal)
ASCII
Value (hexadecimal)
ASCII
Value (hexadecimal)
ASCII
Value (hexadecimal)
M
S
A
-
ERIES
ICRO
MART
LL
IN
String to Enter and Display
Set Values
D2058
'a' 'b'
6162h
'A' '\0'
4100h
'A' 'B'
4142h
'A' 'B'
4142h
-O
T
C
M
NE
YPE
OMMUNICATION
11: W
D2059
D2060
'c' 'd'
6364h
6566h
'\0' '\0'
0000h
6566h
'\0' '\0'
0000h
6566h
'C' '\0'
4300h
6566h
FC9Y-B1730
ANUAL
S
EB
ERVER
'e' 'f'
'e' 'f'
'e' 'f'
'e' 'f'
11-19

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents