Mitsubishi Electric MELSEC iQ-F Series Quick Start Manual page 47

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

Advertisement

■Sending of message data
M67 turns on for setting the information used for M+ENET_MQTT_PublishSend (Sending of MQTT data).
M67
M69 (Execution command) turns on. After M63 (Execution status) turns on, M61 (PUBLISH instruction (Rise detection)) turns
on for sending a message.
M69
Connection number: K1
M61
Binary/ASCII/Unicode strings: K0
M62
QoS: K0
Publish topic name data start address: K600
Publish message size: K0
Publish message data start address: K1000
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
K0
D50
Set QoS to K0.
MOV
K0
D51
Set the binary/ASCII/Unicode strings to K0.
MOV
K600
D52
Set the Publish topic name data start address to K600.
MOV
K0
D53
Set the Publish message size to K0.
M_FX5ENET_MQTT_PublishSend_00A_1
(M+FX5ENET_MQTT_PublishSend_00A)
MQTT Publish Send FB
B: i_bEN
DUT: i_stModule
FX5ENET_1
UW: i_uConnectionNo
D0
B: i_bPublish
UW: i_uQoS
D50
B: i_bMessageRetain
UW: i_uTopicMessageFormat
D51
UW: i_uPublishTopicNameDataAddr
D52
UW: i_uPublishMessageSize
D53
UW: i_uPublishMessageDataAddr
D41
5.3 Checking the Operation of Publish (Sending of MQTT Data)
o_bENO :B
o_bOK :B
o_bErr :B
o_uErrId :UW
D54
o_bSendOK :B
o_uConnectionStatus :UW
D55
5 CHECKING OPERATIONS
5
M63
M64
M65
M66
46

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec iq-fx5-enet mqtt

Table of Contents