EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-F Series - Page 47

Mitsubishi Electric MELSEC iQ-F Series
64 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
5 CHECKING OPERATIONS
5.3 Checking the Operation of Publish (Sending of MQTT Data)
46
5
Sending of message data
M67 turns on for setting the information used for M+ENET_MQTT_PublishSend (Sending of MQTT data).
M69 (Execution command) turns on. After M63 (Execution status) turns on, M61 (PUBLISH instruction (Rise detection)) turns
on for sending a message.
Checking reception on AWS
The sent message can be checked from [Test] [MQTT test client] in the left menu of AWS.
Enter "MQTT_TEST/topic/name" in [Topic filter]. Click the [Subscribe] button.
MOV
MOV
M67
MOV
MOV
K0 D50
D51
D52
D53
K600
K0
K0
Set QoS to K0.
Set the binary/ASCII/Unicode strings to K0.
Set the Publish topic name data start address to K600.
Set the Publish message size to K0.
o_bErr :B
o_bOK :B
o_bENO :B
DUT: i_stModule
B: i_bEN
o_uErrId :UW
o_bSendOK :B
o_uConnectionStatus :UW
M63
M69
M64
M65
UW: i_uConnectionNo
B: i_bPublish
UW: i_uQoS
B: i_bMessageRetain
UW: i_uTopicMessageFormat
UW: i_uPublishTopicNameDataAddr
UW: i_uPublishMessageSize
UW: i_uPublishMessageDataAddr
M_FX5ENET_MQTT_PublishSend_00A_1
(M+FX5ENET_MQTT_PublishSend_00A)
M66
D54
D55
FX5ENET_1
D51
D52
D50
D0
D41
M62
D53
M61
MQTT Publish Send FB
QoS: K0
Binary/ASCII/Unicode strings: K0
Publish topic name data start address: K600
Publish message size: K0
Connection number: K1
Publish message data start address: K1000

Other manuals for Mitsubishi Electric MELSEC iQ-F Series

Related product manuals