EasyManua.ls Logo

IFM Electronic AC402S - Use Network Variables

IFM Electronic AC402S
272 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
SmartPLC SafeLine AC4S with fieldbus interfaces
68
>
7.6.1 Use network variables
43006
Observe the notes on the configuration of the Ethernet configuration interfaces 1 (X3) and
2 (X8). Change IP settings ( S. 40)
The network variables must only be transmitted in the subnet of the Ethernet interface via
which the device cross communicates. The programmer must change the broadcast address
of the network variable list accordingly.
Example:
Ethernet interface: X3
IP address of the Ethernet interface: 192.168.1.10
Broadcast address to be set: 192.168.1.255
To create the cross communication between Standard PLCs:
Requirements:
> AC4S 1 and AC4S 2 are participants of the same CODESYS project (Add additional device to the
project ( S. 41)).
> The AC4S devices are coupled via the Ethernet network.
1 Set the network variable list of the transmitter
In the standard area of device tree of the AC4S 1: Select [PLC Logic] > [Application].
Select [Project] > [Add Object] > [Network Variable List (Sender)...]
> Dialogue window appears.
Set the following parameters as requested
1. [Name]: Unique name of the variable list
2. [Network type]: UDP
3. [Settings...]: Broadcast address ( Note)
4. [Task]: Requested task
Click on [Add] to apply the selected values.
> CODESYS creates the network variable list of the transmitter.
> The network variable list appears in the device tree as sub-node of the standard application.
2 Declare network variables
In standard area of device tree: Double click on the network variable list of the transmitter
> The editor window shows the variable declaration.
Declare network variables.
3 Create network variable list of the receiver
In the standard area of device tree of the AC4S 2: select [PLC Logic] > [Application].
Select [Project] > [Add Object] > [Network Variable List (Receiver)...]
> Dialogue window appears.
Set the following parameters as requested
1. [Name]: Unique name of the variable list
2. [Task]: Requested task
3. [Sender]: variable list of the transmitter
Click on [Add] to apply the selected values.
> CODESYS creates the network variable list of the receiver.
> The network variable list appears in the device tree as sub-node of the standard application.
4 Optional: Create more receiver lists
Repeat step 3 to connect additional devices to the variable list of the transmitter.
>

Table of Contents

Related product manuals