26 (38)
7.3
Mapping I/Os Directly
In the WEB-PLC editor inputs and outputs can be mapped directly via a mapping table. If inputs
and outputs with different data types are mapped, the type is automatically converted.
►
Click button
Editor
to open the WEB-PLC editor and open tab
I/O Mapping
.
►
To add a mapping to the list, click button
Add
in the toolbar.
→
Window
Add mapping
is opened.
►
To select or enter an input, open combo box
Input
.
→
Names of the I/Os are composed of the interface name, the device name and the value
name.
→
Variables contain the prefix
Variables
.
►
In combo box
Output
select or enter an output.
►
Click button
OK
.
→
Mapping is entered in the list.
►
To edit a mapping, click button
Edit
in the toolbar.
►
To delete a mapping, click button
Delete
in the toolbar.
►
For more information, open
WEB-PLC Online Help — WEB—PLC Editor — I/O Mapping
.
7.4
Configuring MQTT Messages
The SG-basic supports MQTT v3.1.1 and can act as publisher and as subscriber. To be able to
exchange messages via MQTT a broker must be configured.
MQTT is an open and unprotected protocol and third parties can read the transmitted
messages if a public broker is used. HMS recommends to use TLS to prevent transmitting
data in clear type.
Note that the default host port depends on the TLS settings and that some brokers need
TLS with a specific port to establish a communication.
Note that the SG-basic only receives messages that have the same topic and the same
data as defined in the WEB-PLC in the SG-gateway MQTT receive message list.
►
Enable MQTT in the WEB-PLC in
Settings — PLC — Messages
.
►
For information how to add messages, open
WEB-PLC Online Help — Settings — Settings —
PLC — Messages
.
The SG-basic only receives messages if the receive message is added to the
Receive message list
(with same topic and content) and if the respective unit is added to the WEB-PLC diagram.
If messages are added in the settings:
►
In the WEB-PLC editor add the unit
Send Msg 0
to the current application for each
configured send message.
→
Send Msg 0
transmits the first configured message when its transmitting trigger input
port (
Snd
) receives a high signal (1).
SG-basic User Manual
4.01.0401.20001 1.1 en-US