Figure 11 Opening the Edit Ethernet Node function. After selecting the Edit Ethernet Node function, press the browse button and start scanning the network.
Browse button Scanning the network. Figure 12 Browsing the Ethernet Nodes. Then select the desired node to edit and click on OK. If desired it is also possible to set the IP settings manually as shown below. The Device Name must be unique within the network. After editing the Device name make sure to press the Assign Name button. To do this double click on the Anybus module in the hardware configuration as shown in Figure 10 Drag and drop the Anybus module to the network.
The window shown below will then appear. Device name configuration 2. The first step is to check out the used Device Namen. Verify that the same name is used as assigned to the Anybus module as shown in Figure 13 Assigning the Device Name.
Secondly the recommendation is to let the IO Controller to set the IP address, but it is also possible to configure the IP address manually by unchecking the boxo. See example in the next figure. The offset addresses can be chosen freely but certain restrictions may apply depending on what CPU is used. When all the above settings are done it is possible to perform a download of the configuration to the PLC.
Press the Save and Compile button and then the Download button. The bus will then go online and start data exchange when the PLC is set to run mode. The first thing that has to be done is to specify the consistent data area in the hardware configuration. The modules will have the size 8 bytes or more. In this example 8 bytes of consistent input and output data is configured.
Figure 18 Selecting modules for consistent data transfer. An example of this is shown in Figure These two SFC:s are included in the Step7 standard package and they also have to be imported into the active project. Refer to the Step7 documentation for details regarding this. The function blocks ensure that data consistency is secured over the complete data length. Where the data is to be read or put in the process image is decided in the hardware configuration, see Figure Note: Data consistency can only be secured for one module only.
Using several modules one SFC for each module has to be used. SFC14 Input data The purpose of SFC14 is to read out the data from the Input area of the process image and then copy the data to another storage location. LADDR: specifies the start byte address of the data to be read.
The value is entered in Hex. This is a Word, in this case MW4. In this case it is copied to memory byte 10 to The length must equal the length set in Figure LADDR: specifies the start byte address of the data to be sent. This is a Word, in this case MW6. In this case it is read from memory byte The data can then be processed as desired i. In the example below Figure 19 it is described how the PLC program can be done. Refer to the respective Fieldbus Appendix for details.
Refer to the Design Appendix for details. Anybus Communicator and the Anybus X-gateway The configuration of the Anybus Communicator and the Anybus X-gateway is described in separate sections below. Figure 20 Bus type setup. Note: Using the Automatic setting for the IO size, the amount of data configured for the fieldbus is depending on the sub-network configuration.
If the settings are enabled the IP settings are configured manually. The Anybus Communicator is configured for generic data mode; all other values are left at their defaults. Figure 21 Protocol mode configuration.
Right click on New Node and add a consume and a produce transaction as shown below. Change the Offline timeout time for the consume transaction to ms and the update time for the produce transaction to ms. Right click on the produce and consume transaction respectively and select add data. In this case 2 bytes of data is used. Note: The update time for the produce transaction must be set to less than the offline timeout time for the consume transaction; in this case the update time is set to ms and the offline timeout time to ms.
The following window will appear. Figure 24 Configuring the connection in the HyperTerminal. Make sure the settings are identical to those shown in the window above. Connect and press ESC and the following menu will appear. Figure 25 Anybus X-gateway Main menu. Figure 2 Inserting a new PLC. Figure 3 Opening the hardware configuration. The right figure shows the network when completed. Click on properties in the dialogue as shown below. Then click on new to define a new network.
Select the desired settings and press OK. When the PLC hardware is set up it will look like described in the figure below. Figure 7 www. Firstly the GSD-file has to be imported. This is described in the following chapter. Then the IP address has to be configured. Finally the input and output data area sizes and offset address for the PLC memory are to be configured.
In this case an Anybus Slave module is added as a slave in the network. Adding the Anybus module to the configuration The Anybus module can be found in the hardware catalogue after the GSD file has been imported.
Figure 9 The Anybus module in the Hardware Catalogue. It is now possible to include the Anybus slave in the network. Figure 10 Drag and drop the Anybus module to the network. A description of how to configure the Device name and IP setting follows below. Figure 11 Opening the Edit Ethernet Node function.
After selecting the Edit Ethernet Node function, press the browse button and start scanning the network. Browse button Scanning the network. Figure 12 Browsing the Ethernet Nodes.
Then select the desired node to edit and click on OK. If desired it is also possible to set the IP settings manually as shown below. The Device Name must be unique within the network.
After editing the Device name make sure to press the Assign Name button. To do this double click on the Anybus module in the hardware configuration as shown in Figure 10 Drag and drop the Anybus module to the network. The window shown below will then appear. Device name configuration 2.
The first step is to check out the used Device Namen. Verify that the same name is used as assigned to the Anybus module as shown in Figure 13 Assigning the Device Name. Secondly the recommendation is to let the IO Controller to set the IP address, but it is also possible to configure the IP address manually by unchecking the boxo.
See example in the next figure. The offset addresses can be chosen freely but certain restrictions may apply depending on what CPU is used. When all the above settings are done it is possible to perform a download of the configuration to the PLC. Press the Save and Compile button and then the Download button. The bus will then go online and start data exchange when the PLC is set to run mode. The first thing that has to be done is to specify the consistent data area in the hardware configuration.
The modules will have the size 8 bytes or more. In this example 8 bytes of consistent input and output data is configured. Figure 18 Selecting modules for consistent data transfer. An example of this is shown in Figure These two SFC:s are included in the Step7 standard package and they also have to be imported into the active project.
Refer to the Step7 documentation for details regarding this. The function blocks ensure that data consistency is secured over the complete data length. Where the data is to be read or put in the process image is decided in the hardware configuration, see Figure Note: Data consistency can only be secured for one module only. Using several modules one SFC for each module has to be used. SFC14 Input data The purpose of SFC14 is to read out the data from the Input area of the process image and then copy the data to another storage location.
LADDR: specifies the start byte address of the data to be read. The value is entered in Hex. This is a Word, in this case MW4. In this case it is copied to memory byte 10 to The length must equal the length set in Figure LADDR: specifies the start byte address of the data to be sent.
This is a Word, in this case MW6. In this case it is read from memory byte The data can then be processed as desired i. In the example below Figure 19 it is described how the PLC program can be done.
0コメント