Mitsubishi Electric Melsensor CF37-SR Settings Manual page 107

Table of Contents

Advertisement

Processing details
• These instructions extract the data by the number of characters specify by (s2)+1 from the location specified by (s2) in the
character string data stored in the device number specified by (s1) and later, and store the extracted data in the device
number specified by (d) and later.
b15
∙∙∙
b8
b7
(s1)
42H (B)
(s1)+1
44H (D)
(s1)+2
46H (F)
(s1)+3
48H (H)
(s1)+4
4AH (J)
(s1)+5
00H
"ABCDEFGHIJK"
(s2)
5
(s2)+1
5
(1) Position specified by (s2): 5th character
(2) ASCII code ((s2)+1)th character from the specified position
• The NULL code (00H) indicating the end of a character string is automatically added to the end of the character string data.
• If the number of characters in the device specified by (s2)+1 is '0', no processing is performed.
• When the number of characters of the data in the device specified by (s2)+1 is '-1', the data till the last character data in the
device specified by (s1) is stored in the device specified by (d) and later.
b15
∙∙∙
b8
b7
(s1)
42H (B)
(s1)+1
44H (D)
(s1)+2
46H (F)
(s1)+3
48H (H)
4AH (J)
(s1)+4
00H
(s1)+5
"ABCDEFGHIJK"
(s2)
5
(s2)+1
-1
(1) Position specified by (s2): 5th character
Operation error
Error code (SD0)
Description
2820H
There is no NULL code (00H) in each setting area in the device/label memory in the device specified by (s1) and later.
3405H
The number of characters of the character string in the device specified by (s1) exceeds 16383.
An out-of-range value is set to (s2).
• The value in the device specified by (s2) is 0 or less.
• The value in the device specified by (s2)+1 is other than the valid values (-1, 0, 1 or bigger).
• The value in the device specify by (s2) exceeds the number of characters in the device specified by (s1).
• The value obtained by adding those in the devices specify by (s2) and (s2)+1 exceeds the number of characters in the device
specified by (s1).
∙∙∙
b0
41H (A)
43H (C)
45H (E)
47H (G)
(1)
49H (I)
(2)
4BH (K)
∙∙∙
b0
41H (A)
43H (C)
45H (E)
47H (G)
(1)
49H (I)
4BH (K)
Appendix 11 Outputting any characters from a decoded character string
b15
∙∙∙
b8
b7
(d)
46H (F)
(d)+1
48H (H)
(d)+2
00H
"EFGHI"
b15
∙∙∙
b8
b7
(d)
46H (F)
(d)+1
48H (H)
(d)+2
4AH (J)
00H
(d)+3
"EFGHIJK"
∙∙∙
b0
45H (E)
47H (G)
49H (I)
∙∙∙
b0
45H (E)
47H (G)
49H (I)
4BH (K)
APPX
A
105

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsensor cf37-lrMelsensor cf26-srMelsensor cf26-lr

Table of Contents