4 - 97 4 - 97
4 SFC PROGRAM CONFIGURATION
MELSEC-Q
6: Comments to be read are stored as follows
1st
comment
information
D1
+0
+((N-1) 20+2)
D1
+1
D1
+2
D1
+3
D1
+4
D1
+19
D1
+20
D1
+21
D1
+((N-1) 20+3)
D1
+((N-1) 20+4)
D1
+((N-1) 20+19)
D1
+((N-1) 20+20)
D1
+((N-1) 20+21)
D1
b15 b0to
b15 b0b8 b7
b15 b0b8 b7
End of comment
Total number of active steps
Number of steps that have
read comments (N)
Step No.
Empty
Comment
.
.
.
Step No.
Empty
.
.
.
Empty
Comment
Empty
End of comment
Nth
comment
information
Order of comment to be stored
Order of comment to be stored
to to
to to
2nd character ASCII code
4th character ASCII code
32nd character ASCII code
1st character ASCII code
3rd character ASCII code
31st character ASCII code
2nd character ASCII code
4th character ASCII code
32nd character ASCII code
1st character ASCII code
3rd character ASCII code
31st character ASCII code
Area name Data to be stored
Total number of steps
• 0000H is stored at S(P). SFCSCOMR instruction, and the total number
of steps are stored at completion of comment readout.
Number of steps that have
read comments (N)
• 0000H is stored at S(P). SFCSCOMR instruction, and the total number
of steps that have actually read comments are stored.
Step No. • Active step No. that has read comment is stored.
Comment
• Comments that have been read are stored.
• Comment area is fixed by a maximum of 32 characters.
• In case the word length to be set for 1 comment
7
at the comment
range setting is set by 32 or less, 0000
H is stored to the area after the
number of characters for 1 comment.
End of comment • 0000H is stored.
Empty • Not used area (0000H is stored).
7: The number of characters for 1 comment at the comment range setting is set with GX
Developer.
For further details, refer to the manual of GX Developer.
With S(P) .SFCSCOMR instruction, the points calculated by the following formula are occupied
from the device No. specified at
D1
.
(Points to be used for storing a comment) = 2 + 20
(number of comment to read (n2))
For
D1
, make sure to set device No. that can store the above points successively.