Chapter 3 Details Of Fb Libraries; M+Strprocessing_Jsondeserialize_F (Acquisition 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
DETAILS OF FB LIBRARIES
3.1
M+StrProcessing_JSONDeserialize_F (Acquisition
of JSON String)

Overview

This FB acquires the Value string corresponding to the specified Key string from the JSON string.
M+StrProcessing_JSONDeserialize_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_uValueNum
Public variable (input)
No.
Label
(8)
pb_st30Member
3 DETAILS OF FB LIBRARIES
10

3.1 M+StrProcessing_JSONDeserialize_F (Acquisition of JSON String)

o_bENO:B
o_bOK:B
o_bErr:B
o_uErrId:UW
o_uValueNum:UW
Name
Data type
Execution
Bit
command
JSON start
Double word [unsigned]
address
Name
Data type
Execution status
Bit
Normal completion
Bit
Error completion
Bit
Error code
Word [unsigned]/bit string [16
bits]
Number of Value
Word [unsigned]/bit string [16
strings that have
bits]
been acquired
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 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 Value strings that have been
acquired is stored.
Description
Specify the member information related to
acquisition.
For details on the structure, refer to the
following.
Page 8 List of Structures

Advertisement

Table of Contents
loading

Table of Contents