M+Strprocessing_Jsonserialize_F (Construction Of Json String); Overview; Labels - Mitsubishi Electric MELSEC iQ-F Series Manual

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

Advertisement

3.2
M+StrProcessing_JSONSerialize_F (Construction
of JSON String)

Overview

This FB constructs the JSON string by specifying the Key string and Value string.
M+StrProcessing_JSONSerialize_F
(1)
B:i_bEN
(2)
UD:i_udJSONAddr
(8)pb_st30Member

Labels

Input labels
No.
Label
(1)
i_bEN
(2)
i_udJSONAddr
*1 The setting range differs depending on the "Device/Label Memory Area Setting" in "CPU Parameter".
Output labels
No.
Label
(3)
o_bENO
(4)
o_bOK
(5)
o_bErr
(6)
o_uErrId
(7)
o_uJSONLength
Public variable (input)
No.
Label
(8)
pb_st30Member
3 DETAILS OF FB LIBRARIES
16

3.2 M+StrProcessing_JSONSerialize_F (Construction of JSON String)

o_bENO:B
o_bOK:B
o_bErr:B
o_uErrId:UW
o_uJSONLength:UW
Name
Data type
Execution
Bit
command
Start address of
Double word [unsigned]
JSON string
storage location
Name
Data type
Execution status
Bit
Normal completion
Bit
Error completion
Bit
Error code
Word [unsigned]/bit string [16
bits]
Number of
Word [unsigned]/bit string [16
characters in
bits]
JSON string
Name
Data type
Member list
Member (0..29)
(3)
(4)
(5)
(6)
(7)
Import
Setting range
Always
On, Off
At start of
Valid device
*1
FB
range
Default value
Off
Off
Off
0
0
Setting range
Description
On: FB starts.
Off: FB does not start.
Specify the start address of the file register
where the constructed JSON string is
stored.
Description
On: The execution command is on.
Off: The execution command is off.
The on state indicates that the FB has been
completed successfully.
The on state indicates that an error has
occurred in the FB.
The error code of an error that occurred in the
FB is stored.
The number of characters (bytes) in the
constructed JSON string is stored.
Description
Specify the member information about the Key
to be constructed.
For details on the structure, refer to the
following.
Page 8 List of Structures

Advertisement

Table of Contents
loading

Table of Contents