Examples for Node-RED
148/263
The example for copying
Note:
To configure the fieldbus (in this case PROFINET), it is simply not
enough to copy this example. You have to perform steps 6 to 12 of
the step-by-step instructions for this purpose.
[{"id":"98832253.9224b","type":"fieldbus
in","z":"ae0f59a7.16c008","name":"MyInput","FieldbusNodeVersion":"1.
1.0","WrapperVersion":"1.1.0","WrapperCompileDate":"Sep 1
2016/08:37:12","MinExpectedNodeJSVersion":"4.5.0","selectedSignalPat
h":"input~fromController~Set_temperature_2","fieldbusObj":"e3a02a0f.
a95938","x":179,"y":144,"wires":[["572ba7f6.f90c08"]]},
{"id":"572ba7f6.f90c08","type":"debug","z":"ae0f59a7.16c008","name":
"","active":true,"console":"false","complete":"false","x":361,"y":14
4,"wires":[]},{"id":"e3a02a0f.a95938","type":"fieldbus
interface","z":"ae0f59a7.16c008","selectedConfigPath":"","currentFir
mwareName":"PROFINET IO Device: Version(3.9, build 0, revision
6)","currentInterfaceName":"cifX0:PROFINET
IO:Device","expectedInterfaceName":"cifX0:PROFINET
IO:Device","expectedFirmwareName":"PROFINET IO Device: Version(3.9,
build 0, revision
6)","expectedFirmwarePath":"","selectedChannelNumber":"2","selectedD
eviceNumber":"1291105","selectedSerialNumber":"20726"}]
Testing the flow and displaying messages
For testing the flow you need a connection to a configured PROFINET IO
Controller which cyclicly exchanges I/O-data with the Edge Gateway. At the
PROFINET IO Controller you have to set output data so that the fieldbus
input node can receive changed output data.
Ø
Click the tab
Debug
in the sidebar.
Ø
Set the output data at the PROFINET IO Controller: The example uses
the signal
Set_temperature_2
and is byte 3 and 4 of module
16
receive byte (outputs)
. Byte 1 and 2 have been assigned by the
configuration
Set_temperature_1
.
ð
The Debug node displays messages of the fieldbus input node as soon
as the signal
Set_temperature_2
changes.
The following figure shows the value 123 for the signal
Set_temperature_2
. The value 0 for "Error" indicates that the cyclic
PROFINET communication works without problems.
Figure 94: Message of the fieldbus input node (without error)
Edge Gateway | NIOT-E-TIB100-GB-RE (Remote)
DOC170501UM04EN | Revision 4 | English | 2018-08 | Released | Public
© Hilscher 2017 – 2018