App. - 42 App. - 42
APPENDIXES
Appendix 5.3.3 Conversion variable
(1) Processing procedure
The C24 processes Conversion variable according to the following procedure.
(a) When "Conversion" is 'HEX ASCII hexadecimal' or 'ASCII hexadecimal
HEX'
Digits are filled
Variable number of digits
1234h
Sending data
Receiving data
"00001234,"
"00001234,"
C24
(Delimiter)
(Number of digits)
(Blank-padded character)
(Conversion)
(Fixed number of data/
Variable number of data)
(Conversion unit)
Adding
a delimiter
When "Delimiter" is ’ , ’
When "Number of digits" is
’8’ and "Blank-padded character" is ’0’
Digits are not filled (Blank-padded character : 0)
Digits are not filled (Blank-padded character : space)
(Data length/Maximum data length)
Send data
(numeric data)
CPU device
G device
D0
When "Conversion unit" is ’Word’
1234h
(Fixed number of data/
Variable number of data)
(Conversion unit)
(Conversion)
(Delimiter)
(Number of digits)
(Blank-padded character)
No blank-padded character
Variable number of digits
No delimiter
Comma,
space
Comma,
space
When "Delimiter" is ’ , ’
Blank-padded
characters are
included
When "Number of digits" is
’8’ and "Blank-padded character" is ’0’
Deleting
blank-padded
characters
Deleting
a delimiter
(Data length/Maximum data length)
D0
When "Conversion unit" is ’Word’
CPU device
G device
Receive data
(numeric data)
Adding
blank-padded
characters
No delimiter
"00001234," "00001234"
"00001234" "1234"
"00001234," "00001234"
"00001234" "1234"
"1234" 1234h
"1234" 1234h
Bin ASCII
conversion of
send data
ASCII bin
conversion of
receive data
Blank-padded characters
At data sending, upper digits are filled with data specified in "Blank-
padded character" when the number of digits is less than that specified
in "Number of send digits of data".
At data receiving, either of '0' or '_ (space) ' is processed as a blank-
padded character, regardless of the setting of "Blank-padded character".
(Example) Setting of "Number of receive digits of data" is '6'
('_' indicates a space character in the table)
No.
Receive data
Operation of C24
1
000120
Considers its starting 3 digits as blank-padded characters.
2
_ _ 0120
Considers its starting 3 digits as blank-padded characters.
3
0 _ 0120
Considers its starting 3 digits as blank-padded characters.
4
_ _ _ 120
Considers its starting 3 digits as blank-padded characters.
5
00012 _
Considers it to be an ASCII bin conversion error (7F20
H
).
6
_ _ _ 12 _
Considers it to be an ASCII bin conversion error (7F20
H
).
7
0001 _ 0
Considers it to be an ASCII bin conversion error (7F20
H
).
Содержание MELSEC LJ71C24
Страница 1: ......
Страница 2: ......
Страница 18: ...A 16 A 16 INDEX REVISIONS WARRANTY...
Страница 22: ...A 20 A 20 2 LJ71C24 R2 LJ71C24 R2 Before Using the Product...
Страница 23: ...A 21 A 21 MEMO...
Страница 38: ...4 2 4 2 4 PROCEDURES PRIOR TO OPERATION MEMO 4...
Страница 105: ...7 30 7 30 7 SETTINGS FOR THE C24 MEMO...
Страница 391: ...App 62 App 62 APPENDIXES 3 Refresh parameter setting In Refresh Parameter set the following network parameters...
Страница 425: ......
Страница 426: ......
Страница 427: ......