Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 960

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

■Insertion data
Operand: (s4)
Device
Item
+0
Number of records
+1
Size
+2 to +
Value to be added
*1 "1" to "16" for a programmable controller CPU with firmware version earlier than "28"
The following figure shows the format of (s4). Set the value corresponding to each field set in (s3).
b15
(s4)
(s4)+1
(s4)+2
(s4)+
• The data size of each value follows the size of the data type of each field.
Data type of field
BOOL
WORD
DWORD
INT
DINT
REAL
LREAL
STRING
WSTRING
7 APPLICATION INSTRUCTIONS
958
7.21 Database Access Instructions
Description
Specify the number of records to be added.
The number of records to be added is a value which satisfies the following formula:
Number of records (m)  (32768/Data size per record)
Specify the size of one record.
Specify the data for the number of fields specified by (s3) for the number of records
(m) specified by (s4)+0.
∙∙∙
b0
Set the number of records, 'm'.
Set the data size per record.
1
1
A value set in the 1st field
n
n
A value set in the 'n'th field
1
1
A value set in the 1st field
n
n
A value set in the 'n'th field
Data size (unit: word)
1
1
2
1
2
2
4
• Even number of characters: (Number of characters2)+1
• Odd number of characters: Rounding up the number of characters2
[Example]
STRING: 32: (322)+1=17
STRING: 15: (152)=7.5 rounding up8
Number of characters+1
[Example]
WSTRING: 32: (32)+1=33
*1
Data for one
Data for 'm'
record
records
Setting range
Set by
*1
1 to m
User
Depends on the
User
data type
Depends on the
User
data type

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents