Ip Address - Festo CPS-Gate Operating Instructions Manual

Industry 4.0 cp lab
Table of Contents

Advertisement

Available languages

Available languages

18.3 IP address

The device's IP address is set to 192.168.2.254 upon shipment from the factory.
This address can be read and changed via the NFC interface, as well as by the CODESYS application.
NFC memory map
Byte 3
192
Setting the IP address with an NFC-compatible mobile device
Activate the NFC antenna by setting mode selector S1 to the middle position (Stop).
The desired IP address sections can be written to address bytes 0 – 3 with a suitable NFC app.
Setting the IP address from CODESYS
The "OPAK_RFID" library is available for reading/writing the IP address.
The following code fragment demonstrates writing of the IP address:
// In order to read and write the IP address via CODESYS, the NFC antenna doesn't
// have to be switched on
IF bWriteIP THEN
Address_IP := 16#C0A86479 // 192.168.100.121
NumberOfWiteBytes := ELA_OPAK_RFID.writeToNFC( addr := ELA_OPAK_RFID.IP,
bWriteIP := false;
END_IF
© Festo Didactic 8075265
Byte 2
168
Byte 1
002
Len := SIZEOF (Address_IP),
Buf := ADR(Address_IP),
Res := ADR(Result)
);
Byte 0
254
CPS Gate
71

Advertisement

Table of Contents
loading

Table of Contents