Mitsubishi Electric MELSEC iQ-F Series User Manual page 59

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

Advertisement

Function to change MQTT connection settings and tool settings
This function changes the settings of the Ethernet module by using ladder programs to set the values of the MQTT connection
settings and the tool settings (Certificate Configuration Tool and EtherNet/IP Configuration Tool settings) in the buffer memory
and turning on the request for write execution.
The settings of the Ethernet module can be changed without the GX Works3.
■Values that are set to the Ethernet module
When this function is used, instead of the values configured with the module parameters in GX Works3, the setting values
stored in the Ethernet module's built-in flash ROM are set to the Ethernet module preferentially.
When the write execution is successful, the values are immediately reflected to the settings of the Ethernet module. However,
if a function using the parameters is running, the values will be effective from the next time the function uses the parameters.
In addition, when the Ethernet module is powered off and on or the CPU module is reset, the setting values stored in the
Ethernet module's built-in flash ROM are reflected to the Ethernet module.
The storage status is stored in the buffer memory to indicate which source the setting values reflected to the Ethernet module
come from.
Settings with GX Works3 Settings in the buffer memory
No setting
No setting
Settings present
No setting
No setting
Settings present
Settings present
Settings present
■Operation to write MQTT connection settings
Set new values in 'MQTT connection settings' (Un\G108809 to Un\G108823) and 'MQTT connection settings (string)'
(Un\G109007 to Un\G109506) in the buffer memory, and set 'MQTT connection setting storage area write request
(Un\G108801) to 1 (Execute) or 2 (Execute (no password change)). This causes the values to be written to the MQTT
connection setting storage area (in the Ethernet module's built-in flash ROM).
The following describes the procedure for writing data to the MQTT connection setting storage area to change the setting
values in the Ethernet module.
1.
Store new values in 'MQTT connection settings' (Un\G108809 to Un\G108823)' and 'MQTT connection settings (string)'
(Un\G109007 to Un\G109506).
2.
The current setting values of the Ethernet module are reflected to the buffer memory when the system is powered off and
on or when the CPU module is reset. Therefore, change the setting values that need to be changed. (The password is
not reflected.)
3.
Write 1 (Execute) to 'MQTT connection setting storage area write request' (Un\G108801).
To exclude the password from being written, write 2 (Execute (no password change)) to 'MQTT connection setting storage
area write request' (Un\G108801).
4.
Check the write result with the following buffer memory areas.
Buffer memory area No.
Name
Un\G108802
MQTT connection setting storage area write
status
Un\G108806
MQTT connection setting storage area write
error code
5.
When the write processing is completed successfully and the values stored in the MQTT connection setting storage area
(in the Ethernet module's built-in flash ROM) are valid, the stored values are immediately reflected to the settings in the
Ethernet module.
Storage status
0: Setting values from GX Works3
0: Setting values from GX Works3
1: Setting values registered to a flash
ROM by using the buffer memory
1: Setting values registered to a flash
ROM by using the buffer memory
When completed successfully
b0: 1 (Completed)
b1: 0 (Normal)
0
Settings of the Ethernet module
Default values when the module parameters
are not set in GX Works3
Setting values that are configured with the
module parameters in GX Works3
Setting values that are written from the buffer
memory
Setting values that are written from the buffer
memory
When completed with an error
b0: 1 (Completed)
b1: 1 (Error)
Error code
4 FUNCTION LIST
4.3 Other Functions
4
57

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec iq-f fx5-enetFx5-u-enet-e09r736

Table of Contents