Ethernet Communication Card - V1.0
Ethernet Communication Card - V1.0
2 … … …
Ethernet Communication Card Safety precautions
Safety precautions
The extension card can be installed and operated only by people who have taken part in
professional training on electrical operation and safety knowledge, obtained the certification,
and been familiar with all steps and requirements for installing, performing commissioning on,
operating, and maintaining the device, and are capable of preventing all kinds of emergencies.
Before installing, removing, or operating the communication card, read the safety precautions
described in this manual and the variable-frequency drive (VFD) operation manual carefully to
ensure safe operation.
For any physical injuries or damage to the device caused due to your neglect of the safety
precautions described in this manual and the VFD operation manual, our company shall not
be held liable.
You need to open the housing of the VFD when installing or removing the
communication card. Therefore, you must disconnect all power supplies of the VFD
and ensure that the voltage inside the VFD is safe. For details, see the description in
the VFD operation manual. Severe physical injuries or even death may be caused if
you do not follow the instructions.
Store the communication card in a place that is dustproof and dampproof without
electric shocks or mechanical pressure.
Tighten the screws up when installing the communication card. Ensure that it is firmly
fixed and properly grounded.
-i-
Ethernet Communication Card Terminology, abbreviations, and acronyms
-ii-
Ethernet Communication Card Contents
Contents
Contents .................................................................................................................................. iii
1 Product confirmation ........................................................................................................... 1
2 PROFINET communication card ......................................................................................... 2
2.1 Overview ........................................................................................................................ 2
2.2 Features......................................................................................................................... 2
2.3 Electrical wiring .............................................................................................................. 4
2.4 Communication .............................................................................................................. 5
2.4.1 Packet format ........................................................................................................ 5
2.4.2 PROFINET I/O communication............................................................................. 6
2.5 Example of PLC communication ................................................................................. 15
2.5.1 Parameter configuration ..................................................................................... 15
2.5.2 Create a new project ........................................................................................... 18
2.5.3 Add GSD files ..................................................................................................... 19
2.5.4 Configure the basic information of the project .................................................... 20
2.5.5 Assign the device name of the IO device (INVT communication card) ............... 25
2.5.6 Save, compile, and download ............................................................................. 26
2.5.7 VFD parameter watching .................................................................................... 29
3 Ethernet IP communication card ...................................................................................... 31
3.1 Overview ...................................................................................................................... 31
3.2 Features....................................................................................................................... 31
3.3 Electrical wiring ............................................................................................................ 33
3.4 Communication ............................................................................................................ 34
3.4.1 Communication settings ..................................................................................... 34
3.4.2 Packet format ...................................................................................................... 35
3.4.3 Ethernet IP communication................................................................................. 35
3.5 Example 1 of PLC communication (communicate with Allen-Bradley PLC)................ 45
3.5.1 Create a new project ........................................................................................... 45
3.5.2 Import an EDS file ............................................................................................... 46
3.5.3 Create a new device object ................................................................................ 49
3.5.4 Use of Rslinx Classic .......................................................................................... 53
3.5.5 Writing PLC programs ........................................................................................ 54
3.5.6 PC connection and program download .............................................................. 56
3.5.7 Configuring PLC IP Addresses through the studio5000 V31 software ............... 57
3.5.8 DLR Ring Network Configuration........................................................................ 58
3.6 Example 2 of PLC communication (communicate with ORMON PLC) ....................... 60
3.6.1 Hardware connections ........................................................................................ 60
3.6.2 Network Configurator software setting................................................................ 61
3.6.3 Sysmac Studio software settings ........................................................................ 67
-iii-
Ethernet Communication Card Contents
-iv-
Ethernet Communication Card Product confirmation
1 Product confirmation
Check the following after receiving a communication extension card product:
Whether the received communication card is the one you purchase according to the
bar code label on the PCB.
Whether all the following items are contained in the product package:
One communication card, one tie wrap, one tie, one M3 screw, and one manual
If the communication card is damaged, a wrong model is delivered, or some items are
missing, contact the supplier in a timely manner.
Obtain the ESD file of the communication card from INVT. The file is named
communication card model.eds.
Item Requirement
Operation temperature -10–+50°C
Storage temperature -20–+60°C
Relative humidity 5%–95%
Other weather No condensation, ice, rain, snow, or hail;
conditions solar radiation < 700 W/m2
Air pressure 70–106 kPa
Vibration and impact 5.9m/s2 (0.6g) at the sine vibration of 9 Hz to 200 Hz
-1-
Ethernet Communication Card PROFINET communication card
2. This manual only describes how to operate the PROFINET communication card and the
related commands but does not provide details about the PROFINET protocol. For more
information about the PROFINET protocol, read the related specialized articles or books.
4. The communication card supports the linear network topology and star-shaped network
topology.
5. The communication card supports 32 inputs/outputs to read and write process data, read
state data, and read and write function parameters of a VFD.
2.2 Features
1. Supported functions
Provides two PROFINET I/O ports and supports the 100 M full-duplex operation
Standard Ethernet channels are non-realtime communication channels that use the TCP/IP
protocol, and are mainly used for device parameterization and configuration and to read
diagnosis data.
RT channels are optimized channels for real-time communication. They take precedence over
TCP (UDP)/IP, which ensures that various stations on a network perform data transmission
with high time requirements at a certain interval. The bus period may reach the precision of
millisecond. These channels are used to transmit data such as process data and alarm data.
-2-
Ethernet Communication Card PROFINET communication card
IRT channels are implemented through the built-in Switch-ASIC IRT chip. IRT communication
can further shorten the processing time of the communication stack software, synchronizing
data transmission of the program and device. The transmission delay is less than 1 ms, and
the jitter is less than 1 μs. The typical application is motion control.
3. Communication ports
Standard RJ45 ports are used in PROFINET communication. The communication card
provides two RJ45 ports with no transmission direction defined, and therefore you can insert a
cable into the port without regard to its direction. Figure 2-1 shows the ports, and Table 2-1
describes the functions of the ports.
4. State indicators
PROFINET communication card provides nine LED indicators to indicate its states. Table 2-2
describes the state indicators.
Use CAT5, CAT5e, and CAT6 network cables for electrical wiring. When the communication
distance is greater than 50 meters, use high-quality network cables that meet the national
standards.
-4-
Ethernet Communication Card PROFINET communication card
Note: For the star-shaped network topology, you need to use a PROFINET switch.
Switch
2.4 Communication
2.4.1 Packet format
Table 2-3 describes the structure of an RT frame (non-synchronous).
Frame IRT
Etherne VLA Etherne
Data header identifie user FCS
t type N t type
r data
6-byte
6-byte
7-byte 1-byte source 36–144 4
destinatio 2
preambl synchronizatio MAC 2 bytes 2 bytes 2 bytes 0 byte
n MAC bytes
e n addres bytes s
address
s
-5-
Ethernet Communication Card PROFINET communication card
By using the 32 inputs/outputs, you can set the reference parameters of the VFD, monitor the
status values, transmit control commands, monitor the running state, and read/write the
function parameters of the VFD. For specific operations, see the following description.
Parameter zone:
PKW1––Parameter identification
PKW3––Parameter value 1
PKW4––Parameter value 2
Process data:
CW––Control word (transmitted from the master to a slave. For description, see
Table 2-5)
SW––Status word (transmitted from a slave to the master. For description, see Table 2-7.)
(When the process data is output by the master to a slave, it is a reference value; and when
the process data is input by a slave to the master, it is an actual value.)
PZD zone (process data zone): The PZD zone in a communication packet is designed for
controlling and monitoring a VFD. The master and slave stations always process the received
PZD with the highest priority. The processing of PZD takes priority over that of PKW, and the
master and slave stations always transmit the latest valid data on the interfaces.
Using CWs is the basic method of the fieldbus system to control VFDs. A CW is transmitted by
-6-
Ethernet Communication Card PROFINET communication card
the fieldbus master station to a VFD device. In this case, the adapter module functions as a
gateway. The VFD device responds to the bit code information of the CW and feeds state
information back to the master through an SW.
Reference value: A VFD device may receive control information in multiple channels, including
analog and digital input terminals, VFD control panel, and communication modules (such as
RS485 and CH-PA01 adapter modules). To enable the control over VFD devices through
PROFINET, you need to set the communication module as the controller of the VFD device.
Actual value: An actual value is a 16-bit word that includes information about VFD device
operation. The monitoring function is defined through VFD parameters. The conversion scale
of an integer transmitted as an actual value from the VFD device to the master depends on the
set function. For more description, see the related VFD operation manual.
Note: A VFD device always checks the bytes of a CW and reference value.
CW: The first word in a PZD task packet is a VFD CW. You can select the expression method
according to P15.43.Table 2.5 and Table 2.6 describe the control words (CWs) of the
Goodrive 350 series VFD.Table 2.5 and Table 2.6 describe the control words (CWs) of the
Goodrive 350 series VFD.
-7-
Ethernet Communication Card PROFINET communication card
Reference value (REF): The second to twelfth words in a PZD task packet are the main
settings. The main frequency settings are provided by the main setting signal source. Table
2-7 describes the settings of Goodrive350 series VFD.
Function Default
Word Value range
code value
Received 0: Invalid
P16.32 0
PZD2 1: Set frequency (0–Fmax, unit: 0.01 Hz)
Received 2: PID reference (0–1000, in which 1000 corresponds to
P16.33 0
PZD3 100.0%)
Received 3: PID feedback (0–1000, in which 1000 corresponds to
P16.34 0
PZD4 100.0%)
-8-
Ethernet Communication Card PROFINET communication card
Function Default
Word Value range
code value
Received 4: Torque setting (-3000–+3000, in which 1000
P16.35 0
PZD5 corresponds to 100.0% of the rated current of the motor)
Received 5: Setting of the upper limit of forward running frequency
P16.36 0
PZD6 (0–Fmax, unit: 0.01 Hz)
Received 6: Setting of the upper limit of reverse running frequency
P16.37 0
PZD7 (0–Fmax, unit: 0.01 Hz)
Received 7: Upper limit of the electromotive torque (0–3000, in
P16.38 which 1000 corresponds to 100.0% of the rated current of 0
PZD8
Received the motor)
P16.39 8: Upper limit of the brake torque (0–3000, in which 1000 0
PZD9
Received corresponds to 100.0% of the rated current of the motor)
P16.40 9: Virtual input terminal command, 0x000–0x3FF 0
PZD10
Received (corresponding to S8, S7, S6, S5, HDIB, HDIA, S4, S3,
P16.41 S2, and S1 in sequence) 0
PZD11
10: Virtual output terminal command, 0x00–0x0F
(corresponding to RO2, RO1, HDO, and Y1 in sequence)
11: Voltage setting (for V/F separation)
(0–1000, in which 1000 corresponds to 100.0% of the
rated voltage of the motor)
12: AO output setting 1 (-1000–+1000, in which 1000
corresponds to 100.0%)
Received 13: AO output setting 2 (-1000–+1000, in which 1000
P16.42 0
PZD12 corresponds to 100.0%)
14: MSB of position reference (signed number)
15: LSB of position reference (unsigned number)
16: MSB of position feedback (signed number)
17: LSB of position feedback (unsigned number)
18: Position feedback setting flag (position feedback can
be set only after this flag is set to 1 and then to 0)
SW: The first word in a PZD response packet is a VFD SW. You can select the expression
method according to P15.43.
Table 2.8 and Table 2.9 describe the control words (CWs) of the Goodrive 350 series VFD.
-9-
Ethernet Communication Card PROFINET communication card
Actual value (ACT): The second to twelfth words in a PZD task packet are the main actual
values. The main actual frequency values are provided by the main actual value signal source.
Table 2.10 lists the actual status values of the Goodrive 350 series VFD.
-10-
Ethernet Communication Card PROFINET communication card
Function Default
Word Value range
code value
P16.43 Transmitted PZD2 0: Invalid 0
P16.44 Transmitted PZD3 1: Running frequency (×100, Hz) 0
P16.45 Transmitted PZD4 2: Set frequency (×100, Hz) 0
P16.46 Transmitted PZD5 3: Bus voltage (×10, V) 0
P16.47 Transmitted PZD6 4: Output voltage (×1, V) 0
P16.48 Transmitted PZD7 5: Output current (×10, A) 0
P16.49 Transmitted PZD8 6: Actual output torque (×10, %) 0
7: Actual output power (×10, %)
P16.50 Transmitted PZD9 0
8: Rotating speed of the running (×1, RPM)
Transmitted
P16.51 9: Linear speed of the running (×1, m/s) 0
PZD10
10: Ramp frequency reference
Transmitted
P16.52 11: Fault code 0
PZD11
12: AI1 value (×100, V)
13: AI2 value (×100, V)
14: AI3 value (×100, V)
15: HDIA frequency (×100, kHz)
16: Terminal input state
17: Terminal output state
18: PID reference (×100, %)
19: PID feedback (×100, %)
Transmitted 20: Rated torque of the motor
P16.53 0
PZD12 21: MSB of position reference (signed number)
22: LSB of position reference (unsigned
number)
23: MSB of position feedback (signed number)
24: LSB of position feedback (unsigned
number)
25: Status word
26: HDIB frequency value (×100, kHz)
PKW zone
PKW zone (parameter identification flag PKW1––numerical zone): The PKW zone describes
the processing mode of the parameter identification interface. A PKW interface is not a
physical interface but a mechanism that defines the transmission mode (such reading and
writing a parameter value) of arameter between two communication ends.
-11-
Ethernet Communication Card PROFINET communication card
In the periodic communication, the PKW zone consists of four 16-bit words. The following
table describes the definition of each word.
Task request and response: When transmitting data to a slave, the master uses a request
number, and the slave uses a response number to accept or reject the request.
Note: The requests #2, #3, and #5 are not supported currently.
PKW examples
You can set PKW1 to 1 and PKW2 to 0A to read a frequency set through keypad (the address
of the frequency set through keypad is 10), and the value is returned in PKW4. The following
data is in hexadecimal format.
Request 00 01 00 0A 00 00 00 00 xx xx xx xx xx xx ... xx xx
-13-
Ethernet Communication Card PROFINET communication card
Response 00 01 00 0A 00 00 13 88 xx xx xx xx xx xx ... xx xx
You can set PKW1 to 4 and PKW2 to 0A to modify a frequency set through keypad (the
address of the frequency set through keypad is 10), and the value to be modified (50.00) is in
PKW4.
Request 00 04 00 0A 00 00 13 88 xx xx xx xx xx xx ... xx xx
Response 00 01 00 0A 00 00 13 88 xx xx xx xx xx xx ... xx xx
PZD examples: The transmission of the PZD zone is implemented through VFD function code
settings. For the function codes, see the related INVT VFD operation manual.
In this example, PZD3 is set to "8: Rotating speed of the running" through the VFD parameter
P15.14. This operation sets the parameter forcibly. The setting remains until the parameter is
set to another option.
-14-
Ethernet Communication Card PROFINET communication card
Subsequently, the information contained in PZD3 is used as tractive force reference in each
request frame until another parameter is specified.
Connect the PLC to the PC with a standard network cable, and set the computer IP (e.g.
192.168.0.100) in the PC network settings. Set the IP and name of the PLC.
1) Open the "TIA PORTAL V13" software, and click "Online & Diagnostics" --> "Accessible
Devices" on the left. Select "PN/IE" in the drop-down list of "Type of the PG/PC interface",
select the Ethernet port in the "PG/PC Interface", and finally click "Refresh" to scan the
connected PLC devices, as shown in the following figure.
-15-
Ethernet Communication Card PROFINET communication card
2) If the connection between the PLC and PC is normal, after scanning is completed, the PLC
device will appear in the device bar, as shown in the red box of the following figure. The device
bar displays the device, device type and device MAC address. Then click the "Show" button in
the lower right corner to enter the device settings.
3) Click "Online & Diagnostics" in the device tree, click "Assign IP Address" under the
“Functions” on the right of the menu bar, and set the IP address and subnet mask of the PLC
shown in the red box marked ③, to ensure that the IP address of the PC and the IP address of
the PLC are in the same network segment, as shown in the following figure.
-16-
Ethernet Communication Card PROFINET communication card
4) Set the IP address of the PLC to "192.168.0.1" and subnet mask to "255.255.255.0" (you
can check "Use router", that is, the router assigns IP). Click the "Assign IP address" button
after the setting is completed, as shown in the following figure.
5) Click "Assign Name", and mark the PLC name in the position shown in the red box marked
②, such as "PLC1215C". Click the "Assign Device Name" button, as shown in the following
figure.
-17-
Ethernet Communication Card PROFINET communication card
After creating a new project, double click “Open the project view”, as shown in the following
figure.
-18-
Ethernet Communication Card PROFINET communication card
After the installation was completedly successfully, a prompt pops up, indicating that the
GSDML file has been installed successfully, as shown in the following figure.
-19-
Ethernet Communication Card PROFINET communication card
In the project view, select and double click "Devices & networks" in the project tree on the left
to enter the “Network overview” view interface, as shown in the following figure.
In the "Hardware catalog" on the right sidebar, select "Controller" → "SIMATIC S7-1200" →
"CPU" → "CPU 1215C AC/DC/Rly" → "6ES7 215-1BG40-0XB0", and double click the
"6ES7 215-1BG40-0XB0" icon or drag it to the project, as shown in the following figure.
-20-
Ethernet Communication Card PROFINET communication card
(2) Add the INVT communication card to the "Devices & networks" view
In the "Hardware Catalog", click "Other field devices" → "Profinet IO" → "I/O" → "INVT" →
"INVT Profinet Adapter" → "INVT Profinet Adapter V1.0", and double click the "INVT Profinet
Adapter V1.0" icon or drag it to the view of "Devices & networks". The communication card is
displayed as "Not assigned", as shown in the following figure.
Click the "Not assigned" option of " INVT Profinet Adapter V1.0" and select the IO controller "
PLC_1. PROFINET IO-System", then CPU and INVT Profinet in the network view are
connected to the same Profinet subnet, as shown in the following figure.
-21-
Ethernet Communication Card PROFINET communication card
Double click the "INVT Profinet Adapter V1.0" icon in the "Devices & Networks" view to enter
the “Device view” interface, as shown in the following figure.
Click the "Hardware Catalog" on the right → "Module", double click the "32 Byte IN/OUT"
module or drag it to the blank space in the "Device view", and the "32 Byte IN/OUT" module is
added to the project, as shown in the following figure.
-22-
Ethernet Communication Card PROFINET communication card
Double click the "Devices & Networks" option to enter the view interface of "Devices &
Networks".
Double click the “PLC S7-1215C” icon in the interface to enter the "Device view" interface of
the PLC.
Double click the network interface position in the PLC icon to enter the properties editing
interface bar of “PROFINET interface_1”.
Click the "Ethernet addresses" option in the "General" list to set the PLC address and name
(In this example, IP address of the PLC is 192.168.0.1 and PLC name is PLC1215C).
-23-
Ethernet Communication Card PROFINET communication card
Double click the "Devices & Networks" option to enter the view interface of "Devices &
Networks".
Double click the “INVT Profinet Adapter V1.0” icon in the interface to enter the "Device view"
interface of the communication card.
Double click the network interface position in the INVT Profinet communication card icon to
enter the properties editing interface bar of PROFINET interface.
Click the "PROFINET interface [X1]" option in the "General" list, and click the "Ethernet
addresses" option. Configure parameters of the INVT PROFINET communication card
according to the parameters shown in the following figure such as IP address and device
name of the communication card (in this example, IP address of the communication card is
192.168.0.2 and the name is invt1).
-24-
Ethernet Communication Card PROFINET communication card
2.5.5 Assign the device name of the IO device (INVT communication card)
After the CPU and INVT Profinet communication card are successfully connected to the PC
through the network cable, click "Online access" on the left to find the network card
corresponding to the PC that is connected to the PLC and communication card.
In all displayed devices, find the INVT communication card device and click it, such as emc
(192.168.0.2) device, as shown in the following figure (Note: When the communication card is
used for the first time, there is no device name, and only the default IP can be scanned) .
Double click "Online & Diagnostics" to enter the online diagnostics state.
Enter the communication card name in “PROFINET device name”, and click "Assign Name" in
the lower right corner to confirm.
Note: The name of the PROFINET communication card set online must be consistent with
that set in the configuration project, otherwise PROFINET communication cannot be carried
out between the devices.
-25-
Ethernet Communication Card PROFINET communication card
Right click "PLC_1 [CPU 1215C AC/DC/Rly]" → left click "Compile" → "Hardware and
software (change only)" to compile the entire project.
Click the "Download to device" icon to download the project configuration to the PLC
controller.
-26-
Ethernet Communication Card PROFINET communication card
In the download dialog box, search for the connected PLC device, as shown in the following
figure.
Select the "PN/ IE_1" option in the drop-down list of "Connection to interface/subnet".
Click the "Start search" button in the lower right corner to start scanning and detecting PLC
devices in the subnet.
-27-
Ethernet Communication Card PROFINET communication card
After searching is completed, the PLC S7-1215C that is connected to the PC will be displayed
in the list of "Compatible devices in target subnet", as shown in the following figure.
Select the PLC to be downloaded in the following figure, and click the "Download" button to
download the configuration information and PLC program to the selected PLC.
-28-
Ethernet Communication Card PROFINET communication card
Create target watch variables—PZD, PKW, control word and status word variables of the VFD
in the newly created watch table, as shown in the following figure.
-29-
Ethernet Communication Card PROFINET communication card
After the watch variables are created, click the "Watch all" button in the watch table to monitor
the values of all variables, and click the "Modify parameters" button in the watch table to
modify the parameters of the target variable, so as to watch the VFD through the PLC.
-30-
Ethernet Communication Card Ethernet IP communication card
2. This manual only describes how to operate the Ethernet IP communication card and the
related commands but does not provide details about the EtherNet/IP protocol. For more
information about the Ethernet IP protocol, read the related specialized articles or books.
4. The communication card supports the star, linear, and ring topologies.
5. The communication card supports 32 inputs/outputs to read and write process data, read
state data, and read and write function parameters of a VFD.
3.2 Features
1. Supported functions
Supports the EtherNet/IP protocol, and supports EtherNet/IP devices.
Supports the star, linear, and ring topologies (but does not support ring-network
monitoring).
CIP uses non-connected UDP/IP and connection-based TCP/IP for information control and
transmission over the Ethernet, allowing the sending of explicit and implicit packets. Implicit
packets are time-critical control messages and transmitted using UDP/IP. Explicit packets are
point-to-point messages that are not time critical and transmitted using TCP/IP. Explicit
packets are used for configuration, download, and fault diagnosis, while implicit packets are
used for real-time I/O data transmission.
-31-
Ethernet Communication Card Ethernet IP communication card
3. Communication ports
Standard RJ45 ports are used in EtherNet/IP communication. The communication card
provides two RJ45 ports with no transmission direction defined, and therefore you can insert a
cable into the port without regard to its direction. Figure 3-1 shows the ports, and Table 3-1
describes the port pins.
4. State indicators
The EtherNet/IP communication card provides four LED indicators and four net port indicators
to indicate its states. Table 3-2 describes the state indicators.
-32-
Ethernet Communication Card Ethernet IP communication card
Use CAT5, CAT5e, and CAT6 network cables for electrical wiring. When the communication
distance is greater than 50 meters, use high-quality network cables that meet the national
standards.
Master device
EC-Tx510 EC-Tx510 EC-Tx510
(PLC)
-33-
Ethernet Communication Card Ethernet IP communication card
Master device
EC-Tx510 EC-Tx510 EC-Tx510
(PLC)
Switch
Note: An Ethernet switch must be available when the star topology is used.
Master device
EC-Tx510 EC-Tx510 EC-Tx510
(PLC)
3.4 Communication
3.4.1 Communication settings
The EtherNet/IP communication card can function as only the EtherNet/IP slave station.
Before communication, set Goodrive350 function codes, including:
The default IP address and subnet mask for each communication card are 192.168.0.1 and
255.255.255.0. You can change them to the address of a network segment.
Control mode
If you want to control the VFD with the communication card, set the control mode to
EtherNet/IP communication control. To be specific, set P00.01=2 (communication as the
running command channel) and set P00.02=3 (EtherNet/IP communication channel) to control
VFD start and stop. If you want to set a value through EtherNet/IP communication, change the
control way of corresponding function codes to EtherNet/IP communication. Appendix B lists
related function codes.
-34-
Ethernet Communication Card Ethernet IP communication card
Note: After the setting, the card can communicate normally. If you want to control the VFD
with the card, set related function codes to enable EtherNet/IP communication control.
By using the 32 inputs/outputs, you can set the reference parameters of the VFD, monitor the
status values, transmit control commands, monitor the running state, and read/write the
function parameters of the VFD. For specific operations, see the following description.
Parameter zone:
PKW1––Parameter identification
-35-
Ethernet Communication Card Ethernet IP communication card
PKW3––Parameter value 1
PKW4––Parameter value 2
Process data:
CW––Control word (transmitted from the master to a slave. For description, see Table 3-5.)
SW––Status word (transmitted from a slave to the master. For description, see Table 3-8.)
(The process data output from the master to a slave is a reference value, and the process data
input from a slave to the master is an actual value.)
PZD zone (process data zone): The PZD zone in a communication packet is designed for
controlling and monitoring a VFD. The master and slave stations always process the received
PZD with the highest priority. The processing of PZD takes priority over that of PKW, and the
master and slave stations always transmit the latest valid data on the interfaces.
Using CWs is the basic method of the fieldbus system to control VFDs. A CW is transmitted by
the fieldbus master station to a VFD device. In this case, the adapter module functions as a
gateway. The VFD device responds to the bit code information of the CW and feeds state
information back to the master through an SW.
Reference value: A VFD device may receive control information in multiple channels, including
analog and digital input terminals, VFD control panel, and communication modules (such as
RS485 and CH-PA01 adapter modules). To enable the control over VFD devices through
EtherNet/IP, you need to set the communication module as the controller of the VFD device.
Actual value: An actual value is a 16-bit word that includes information about VFD device
operation. The monitoring function is defined through VFD parameters. The conversion scale
of an integer transmitted as an actual value from the VFD device to the master depends on the
set function. For more description, see the related VFD operation manual.
Note: A VFD device always checks the bytes of a CW and reference value.
When P15.43=0, EtherNet IP control words are defined by byte. Table 3-5 describes
Goodrive350 series VFD CWs defined by byte.
-36-
Ethernet Communication Card Ethernet IP communication card
When P16.56=1, EtherNetIP control words are defined by bit. Table 3-6 describes
Goodrive350 series VFD CWs defined by bit.
-37-
Ethernet Communication Card Ethernet IP communication card
Function Default
Word Value range
code value
Received 0: Invalid
P16.32 0
PZD2 1: Set frequency (0–Fmax, unit: 0.01 Hz)
Received 2: PID reference (0–1000, in which 1000 corresponds to
P16.33 0
PZD3 100.0%)
Received 3: PID feedback (0–1000, in which 1000 corresponds to
P16.34 0
PZD4 100.0%)
Received 4: Torque setting (-3000–+3000, in which 1000
P16.35 corresponds to 100.0% of the rated current of the motor) 0
PZD5
Received 5: Setting of the upper limit of forward running frequency
P16.36 (0–Fmax, unit: 0.01 Hz) 0
PZD6
Received 6: Setting of the upper limit of reverse running frequency
P16.37 (0–Fmax, unit: 0.01 Hz) 0
PZD7
Received 7: Upper limit of the electromotive torque (0–3000, in
P16.38 which 1000 corresponds to 100.0% of the rated current of 0
PZD8
the motor)
Received
P16.39 8: Upper limit of the brake torque (0–3000, in which 1000 0
PZD9
corresponds to 100.0% of the rated current of the motor)
Received
P16.40 9: Virtual input terminal command, 0x000–0x3FF 0
PZD10
(corresponding to S8, S7, S6, S5, HDIB, HDIA, S4, S3,
Received
P16.41 S2, and S1 in sequence) 0
PZD11
10: Virtual output terminal command, 0x00–0x0F
(corresponding to RO2, RO1, HDO, and Y1 in sequence)
Received 11: Voltage setting (for V/F separation)
P16.42 0
PZD12 (0–1000, in which 1000 corresponds to 100.0% of the
rated voltage of the motor)
-38-
Ethernet Communication Card Ethernet IP communication card
Function Default
Word Value range
code value
12: AO output setting 1 (-1000–+1000, in which 1000
corresponds to 100.0%)
13: AO output setting 2 (-1000–+1000, in which 1000
corresponds to 100.0%)
14: MSB of position reference (signed number)
15: LSB of position reference (unsigned number)
16: MSB of position feedback (signed number)
17: LSB of position feedback (unsigned number)
18: Position feedback setting flag (position feedback can
be set only after this flag is set to 1 and then to 0)
Status word (SW): The first word in a PZD response packet is a VFD SW.
P15.43=0 (SWs are defined in decimal format), and the VFD SWs are defined as follows.
-39-
Ethernet Communication Card Ethernet IP communication card
P15.43=1 (SWs are defined in binary format), and the VFD SWs are defined as follows.
Actual value (ACT): The second to twelfth words in a PZD task packet are the main actual
values. The main actual frequency values are provided by the main actual value signal source.
Function Default
Word Value range
code value
P16.43 Transmitted PZD2 0: Invalid 0
P16.44 Transmitted PZD3 1: Running frequency (×100, Hz) 0
P16.45 Transmitted PZD4 2: Set frequency (×100, Hz) 0
P16.46 Transmitted PZD5 3: Bus voltage (×10, V) 0
P16.47 Transmitted PZD6 4: Output voltage (×1, V) 0
P16.48 Transmitted PZD7 5: Output current (×10, A) 0
P16.49 Transmitted PZD8 6: Actual output torque (×10, %) 0
7: Actual output power (×10, %)
P16.50 Transmitted PZD9 0
8: Rotating speed of the running (×1, RPM)
Transmitted
P16.51 9: Linear speed of the running (×1, m/s) 0
PZD10
10: Ramp frequency reference
Transmitted
P16.52 11: Fault code 0
PZD11
12: AI1 value (×100, V)
13: AI2 value (×100, V)
14: AI3 value (×100, V)
15: HDIA frequency (×100, kHz)
Transmitted 16: Terminal input state
P16.53 17: Terminal output state 0
PZD12
18: PID reference (×100, %)
19: PID feedback (×100, %)
20: Rated torque of the motor
21: MSB of position reference (signed number)
-40-
Ethernet Communication Card Ethernet IP communication card
Function Default
Word Value range
code value
22: LSB of position reference (unsigned
number)
23: MSB of position feedback (signed number)
24: LSB of position feedback (unsigned
number)
25: Status word
26: HDIB frequency value (×100, kHz)
PKW zone
PKW zone (parameter identification flag PKW1––numerical zone): The PKW zone describes
the processing mode of the parameter identification interface. A PKW interface is not a
physical interface but a mechanism that defines the transmission mode (such reading and
writing a parameter value) of arameter between two communication ends.
Parameter Process data
identification (PKW)
CW PZD2
PKW1 PKW2 PKW3 PKW4 SW PZD2
Request Parameter Parameter
No. Parameter value error
Response address No. value
No.
In the periodic communication, the PKW zone consists of four 16-bit words. The following
table describes the definition of each word.
Note: If the master station requests the value of a parameter, the values in PKW3 and PKW4
of the packet that the master station transmits to the VFD are no longer valid.
Task request and response: When transmitting data to a slave, the master uses a request
number, and the slave uses a response number to accept or reject the request.
-41-
Ethernet Communication Card Ethernet IP communication card
Note: The requests #2, #3, and #5 are not supported currently.
The standard ODVA protocol specifies the data transmission format and CWs/SWs definitions,
and the packet format for data transmission with the VFD is shown in Table 3.13.
-42-
Ethernet Communication Card Ethernet IP communication card
Data length
No. Input/Output Format (word)
(bytes)
2 70/20 4 CW1/SW1 + Speed_ref/act
3 71/21 4 CW2/SW2 + Speed_ref/act
CW1/SW1 + Speed_ref/act +
4 72/22 6
Torque_ref/act
CW2/SW2 + Speed_ref/act +
5 73/23 6
Torque_ref/act
In which, CW1/SW1 and CW2/SW2 are defined as shown in Tables 3.14, 3.15, 3.16 and 3.17.
-43-
Ethernet Communication Card Ethernet IP communication card
Based on the ODVA protocol provisions, these four modes are combined with PZD process
data defined by INVT, and the packet format for data transmission with the VFD is shown in
Table 3.18.
Table 3.18 INVT extended data model based on the ODVA protocol
Data length
No. Input/Output Format (word)
(bytes)
6 74/24 24 CW1/SW1 + Speed_ref/act + Null +PZD4–12
-44-
Ethernet Communication Card Ethernet IP communication card
Data length
No. Input/Output Format (word)
(bytes)
7 75/25 24 CW2/SW2 + Speed_ref/act + Null +PZD4–12
CW1/SW1 + Speed_ref/act + Torque_ref/act +
8 76/26 24
PZD4–12
CW2/SW2 + Speed_ref/act + Torque_ref/act +
9 77/27 24
PZD4–12
In these four modes, definitions of CWs and SWs are consistent with that of "Model specified
in the standard ODVA agreement", and definitions of PZD4–12 are consistent with that of
"INVT self-defined mode".
Connect the PC to the PLC with a printer cable or network cable. Open software,
Select the correct PLC model, fill in the project name, click "Next", and click "Finish".
-45-
Ethernet Communication Card Ethernet IP communication card
-46-
Ethernet Communication Card Ethernet IP communication card
You can obtain the EDS file of the communication card from the vendor, or downloaded it (file
name: GD350_EthernetIP_V1.01.eds) from the INVT website at www.invt.com.cn.
Click "Next".
Select the option as shown in the following figure, and click "Next".
-47-
Ethernet Communication Card Ethernet IP communication card
Click "Browse" to select the EDS file that you want to download, and then click "Next".
-48-
Ethernet Communication Card Ethernet IP communication card
Select "I/O Configuration"—>"Ethernet item" on the left, and right click "New Module".
-49-
Ethernet Communication Card Ethernet IP communication card
Fill in the module name, and set the IP address of the module. The IP address must be
consistent with P16.02–P16.05 on the GD350 Ethernet IP communication card, otherwise
communication fails.
-50-
Ethernet Communication Card Ethernet IP communication card
Click the "Change" option to select the protocol type used by the module. Each type differs in
IO format, so you need to select the corresponding IO format based on the protocol type, as
shown in the following table. Take "Exclusive Owner" as an example.
-51-
Ethernet Communication Card Ethernet IP communication card
Once the module has been created successfully, you can see it under the "Ethernet" item
under "I/O Configuration" on the left, and click it to check the device information.
-52-
Ethernet Communication Card Ethernet IP communication card
Rslinx Classic is used to connect the PC to the PLC. Open the "Rslinx Classic" software.
Click the "S" icon, and a window of "Configure Drivers" pops up. Select "Ethernet/IP Driver" in
the drop-down menu of "Available Driver Types", click "Add New", a window of "Add New
RSLinx Classic Driver" pops up, and click "OK".
-53-
Ethernet Communication Card Ethernet IP communication card
In the "Configure driver" window that pops up, select your computer's network card and click
"OK".
-54-
Ethernet Communication Card Ethernet IP communication card
-55-
Ethernet Communication Card Ethernet IP communication card
Click on "COMMUNICATIONS" under "Who Active", and in the pop-up screen, click on PLC
Project under the "USB" option. "Dowmload". Note: The PLC dial code cannot be "RUN" at
this time.
-56-
Ethernet Communication Card Ethernet IP communication card
Make sure that the PLC is in REM or PROG mode, click "1769-L36ERMS" at the bottom left to
enter the "Controller Properties" interface, and then click "Internet Protocol" to change the IP
address of the PLC.
-57-
Ethernet Communication Card Ethernet IP communication card
Open the Studio 5000 software and use an Allen-Bradley CompactLogix PLC with ring
networking capability, which requires at least two GD350 Ethernet IP communication cards.
More GD350 Ethernet IP communication cards can be added, but it is recommended that the
maximum number of nodes used on the DLR ring network shall not exceed 32. The
connection method is shown in the following figure.
USB port
EthernetIP card
…… Ethernet IP card
PLC
CompactLogix L36ERMS
USB port
Port 1
Port 2
-58-
Ethernet Communication Card Ethernet IP communication card
The method of addition is the same as that of the linear star connection.
Double click "1769-L36ERMS INVTS" under the "I/O Configuration" folder, as shown in the
following figure.
Enter "Network" under the "Controller Properties" option and select "Enable Supervisor
Mode".
-59-
Ethernet Communication Card Ethernet IP communication card
Note: The ring network monitor function is enabled only when the PLC is in programming
mode.
(4) Return to Logix Designer and make sure that none of the communication cards has
encountered the following fault.
(5) Download the project to the PLC, bring the PLC online, and put it in programming mode.
The NX1P2-9024DT is not configured with a USB download port, and communication and
-60-
Ethernet Communication Card Ethernet IP communication card
download between the PC and PLC is conducted through the built-in Ethernet IP port. In this
case, a switch is needed in the experiment, and the connection method is as follows.
PLC GD350 PC
Ethernet IP card
Switch
Select "EDS File"->"Install", and add EDS file: INVT_GD350_EthernetIP_V1.01. Click "Open",
"Yes", and then click "Cancel".
-61-
Ethernet Communication Card Ethernet IP communication card
Add "NX1P2" and "INVT" in the following location to the Ethernet IP bus. After these two
device are added successfully, the bus shows two devices. The default IP addresses are
"192.168. 250.1" and "192.168.250.2", and GD350 function codes P16.02–P16.05 are
changed into 192, 168, 250 and 2 respectively.
-62-
Ethernet Communication Card Ethernet IP communication card
-63-
Ethernet Communication Card Ethernet IP communication card
Click the "Connect" icon to select the corresponding network port, and click "OK".
-64-
Ethernet Communication Card Ethernet IP communication card
Select "Use the existing network""EtherNet/IP_1", click "OK", and the PLC is connected
successfully.
After the PLC is connected successfully, the blue indicator above the PLC device icon is on.
Click the "Device Property" icon, and the "Controller Information" tab pops up. You can switch
the PLC status between "Program" and "Run" in the tab.
-65-
Ethernet Communication Card Ethernet IP communication card
Right click the device icon and select "Change Node Address" to change the PLC IP address.
-66-
Ethernet Communication Card Ethernet IP communication card
Double click the icon to open the software, select "New Project", enter "Project name",
After a new project is created completely, you can enter the following interface. Right click the
device icon and select "Rename" to change the device name (you can choose not to change
it).
-67-
Ethernet Communication Card Ethernet IP communication card
Select "Ethernet-Hub Connection" as the connection method, enter the remote IP address
"192.168.250.1", and click "Ethernet communication test". Click "OK" when the status bar
shows "Test succeeded".
Select "Programming" "Data" "Global Variables" in the left menu bar, and add global
-68-
Ethernet Communication Card Ethernet IP communication card
variables as needed. Note that you shall select "WORD" in the "Data Type" column and select
"Input/Output" in the "Network Publish" column. Take "ODVA Basic speed control assembly"
as an example, and create four global variables.
Click "Tools" in the top menu bar, and select "EtherNet/IP Connection Settings".
-69-
Ethernet Communication Card Ethernet IP communication card
Right click the blank area under "Tag Set", and select "Create New Tag Set".
The input tag set is named "INPUT", right click "INPUT" to select "Create New Tag", and add
the input global variables to the "INPUT" tag set. Pay attention to the order of the data
sequence.
-70-
Ethernet Communication Card Ethernet IP communication card
Repeat above steps for "OUTPUT" tag set and "OUTPUT" tag.
-71-
Ethernet Communication Card Ethernet IP communication card
After data tags are set completely, click "Export" to export the data tag to a local folder, and
save it as "GD350_test.csv" format.
In the "Network Configurator" software, double click the PLC device icon, click "To/From File"
in the lower right corner, and select "Import from File...".
-72-
Ethernet Communication Card Ethernet IP communication card
Select the file "GD350_test.csv" exported from Sysmac Studio, and click "Open".
Select the device "192.168.250.2" under the "Connections" tab, and click the Move Down
button.
-73-
Ethernet Communication Card Ethernet IP communication card
Double click the device "192.168.250.2", set the data input/output tags, and click "Regist".
Click the Online button (If the device name has been changed, the following interface will pop
up, and you can click "No").
-74-
Ethernet Communication Card Ethernet IP communication card
Click "Transfer to Controller" under the " Built-in EtherNet/IP Port Settings" tab.
Click "Yes".
-75-
Ethernet Communication Card Ethernet IP communication card
-76-
Ethernet Communication Card Ethernet IP communication card
Click "Yes".
Click "Close" when the "Controller" status in the lower right corner is two green lights.
-77-
Ethernet Communication Card Ethernet IP communication card
-78-
Ethernet Communication Card Ethernet IP communication card
Click the "Run" icon, turn the PLC to "Run Mode", and click "Yes".
Click "View" on the top menu bar, and select "Watch Tab Page".
-79-
Ethernet Communication Card Ethernet IP communication card
Enter the variable name in the "Watch Tab Page" to monitor the value of the variable, and
change the value in real time in the "Modify" box.
-80-
Ethernet Communication Card EtherCAT communication card
2. This manual only describes how to operate the EC-TX508 communication card and the
related commands but does not provide details about the EtherCAT protocol. For more
information about the EtherCAT protocol, read the related specialized articles or books.
4. The EtherCAT communication of this communication card supports two types of process
data for reading data from and writing data to VFDs. They are PDOs (process data
objects) and SDOs (service data objects) for reading data from and writing data to the
object dictionary defined by the manufacturer.
4.2 Features
1. Supported functions
2. Supported services
Allowing SDOs to read data from and write data to VFD function codes
-81-
Ethernet Communication Card EtherCAT communication card
Standard RJ45 ports are used in EtherCAT communication. The communication card provides
two RJ45 ports with transmission direction defined. Figure 4-1 shows the ports. IN (indicating
input) and OUT (indicating ouput) are EtherCAT wiring network ports. Table 4-2 describes the
port pins.
The EtherCAT communication card provides four LED indicators and four net port indicators to
indicate its states. Table 4-3 describes the state indicators.
Master device
EC-Tx508 EC-Tx508 EC-Tx508
(PLC)
-83-
Ethernet Communication Card EtherCAT communication card
4.4 Communication
4.4.1 CoE reference model
GD350 application
CoE network reference model consists of the data link layer and application layer. The data
link layer is responsible for EtherCAT communication protocol. CANopen drive Profile (DS402)
communication rules are embedded in the application layer. The object dictionary in CoE
includes the parameters, application data, and PDO mapping configuration information.
PDOs are composed of the objects (in the object dictionary) that can perform PDO mapping.
The content in PDO data is defined by PDO mapping. PDO data is periodically read and
written, which does not require searching the object dictionary. Mail box communication (SDO)
is not periodic, which requires searching the object dictionary.
Note: To parse SDO and PDO data correctly on the EtherCAT data link layer, it is necessary to
configure FMMU and Sync Manager (SM).
Synchronization
Configuration Size Start address
management
Assigned to
Sync Manager 0 512byte 0x1000
receive SDO
Assigned to send
Sync Manager 1 512byte 0x1400
SDO
Assigned to
Sync Manager 2 128byte 0x1800
receive PDO
-84-
Ethernet Communication Card EtherCAT communication card
Synchronization
Configuration Size Start address
management
Assigned to send
Sync Manager 3 128byte 0x1C00
PDO
4.4.2 EtherCAT slave station information
EtherCAT slave station information file (.xml) is read by the master station to construct the
master and slave station configuration. This file contains mandatory information about
EtherCAT communication settings. INVT provides this file EC-TX508_100.xml.
Init
IP PI
Pre-Op
SI
OI PS SP
OP Safe-Op
SO OS
Op
State Description
Init Both SDO and PDO communication are unavailable.
The master station configures the data link layer address and SM
channel for SDO communication.
The master station initializes DC synchronization information.
Init to Pre-Op The master station requests the jump to the Pre-Op state.
The master station configures the application layer control register.
The slave station checks whether the mailbox is initialized
properly.
-85-
Ethernet Communication Card EtherCAT communication card
State Description
Pre-Op SDO communication is available but PDO is unavailable.
The master station configures the SM and FMMU channels for
PDO communication.
The main station configures PDO mapping through SDO
Pre-Op to Safe-Op communication.
The master station requests the jump to the Safe-Op state.
The slave station checks whether the PDO and DC are configured
correctly.
SDO communication is available.
Safe-Op Communication of receiving PDOs is available, but that of sending
PDOs is unavailable, in the Safe state.
Safe-Op to Op The master station requests the jump to the Op state.
Op Both SDO and PDO communication are available.
4.4.4 PDO mapping
The process data of an EtherCAT slave station is composed of SM channel objects. Each SM
channel object describes the consistent area of the EtherCAT process data and includes
multiple PDOs. An EtherCAT slave station with the application control function shall support
PDO mapping and reading of SM PDO assigned objects.
The master station can select objects from the object dictionary to perform PDO mapping.
PDO mapping configuration is located in the range of 1600h–1603h (RxPDOs: receiving
PDOs) and range of 1A00h–1A03h (TxPDOs: sending PDOs) in the object dictionary. The
PDO mapping method is shown in the following figure.
-86-
Ethernet Communication Card EtherCAT communication card
Object dictionary
6064 indicates index
Sub-
Index Object content 00h indicates sub-index
index
20h indicates parameter bit length
1A00h 0 0x03
1A00h 1 0x60410010
1A00h 2 0x60640020
1A00h 3 0x60B90010
6060h 0 Object D 8h
In addition to PDO mapping, EtherCAT process data switching needs to assign PDOs to SM
channels. The relationship between PDOs and SM channels is established through SM PDO
assigned objects (1C12h and 1C13h). The mapping between SM channels and PDOs is
shown in the following figure.
Object dictionary
Sub-
Index Object content
index
1C13h 0 0x02
1C13h 1 0x1A00
1C13h 2 0x1A01
1C13h PDO_1 PDO_2
1A00h PDO_1
1A01h PDO_2
1A02h PDO_3
1A03h PDO_4
Default PDO mapping (Position, Velocity, Torque, Torque limit, Touch probe):
Control Touch
Target Target Target Max. Mode of Profile
RxPDO word Probe
Position Velocity Torque Torque Operation velocity
(0x1600) (0x6040 Function
(0x607A) (0x60FF) (0x6071) (0x6072) (0x6060) (0x6081)
) (0x60B8)
Following
Statusw Position Speed Torque Mode of Touch
Error
TxPDO ord Actual Actual Actual Operation Error Code Probe
Actual
(0x1A00) (0x6041 Value Value Value Display (0x603F) Value
Value
) (0x6064) (0x606C) (0x6077) (0x6061) (0x60BA)
(0x60F4)
4.4.5 DC-based network synchronization
The DC (distributed clock) can enable all EtherCAT devices to use the same system time so
as to control the synchronous execution of all device tasks. In the EtherCAT network, the clock
with the DC function of the first slave station connected to the master station is used as the
reference clock across the network. The other slave stations and master station use this
reference clock for synchronization.
Free-Run: The running cycle and communication cycle of each servo drive are not related to
the communication cycle of the master station.
DC Mode: The servo drive performs synchronization through Sync0 of the master station.
4.5 CiA402 device protocol
The master station controls the drive through the control word (0x6040) and obtains the
current state of the drive by reading the status word (0x6041). The servo drive implements
motor control based on master station control commands.
-88-
Ethernet Communication Card EtherCAT communication card
0 Fault Reaction
Active
Not Ready to 14
Switch On
1 Fault
Switch On Disabled 15
2 7
Ready to
Switch On
10
3 6
9
Power 12
Enabled 8
Switch On
4 5
Status Description
Not Ready to Switch On The drive is in the initialization process.
Switch On Disabled Drive initialization completes.
The drive is preparing to enter the Switch On
Ready to Switch On
state, but the motor is not excited.
The drive is in the ready state, and the main
Switched On
circuit power supply is normal.
The drive is enabled and controls the motor
Operation Enable
based on the control mode.
Quick Stop Active The drive stops in the set manner.
When detecting an alarm, the drive stops in the
Fault Reaction Active set manner, but the motor still has the exciting
signal.
The drive is in the faulty state, and the motor has
Fault
no exciting signal.
15 11 10 9 8 7 6 4 3 2 1 0
Switch Servo
Factory Fault Operation Servo Quick
Reserved Suspend on main being
define reset mode running stop
circuit running
O O O M O M M M M
MSB LSB
Operation mode
Bit Profile velocity
Profile position mode Homing mode
mode
4 New set-point Reserved Homing operation start
5 Change set immediately Reserved Reserved
6 Abs/rel Reserved Reserved
8 Halt Halt Halt
Control word is set to 0x0F for enabling the drive. Otherwise, the drive will stop. When a fault
occurs, if bit 7 of the control word is set to 1, the reset command is enabled.
0 Ready to switch on M
1 Switched on M
2 Operation enabled M
3 fault M
4 Voltage enable M
5 Quick stop M
6 Switch on disabled M
7 Warning O
8 Manufacture specific O
9 Remote M
10 Target reached M
BIT0–3, 5, AND6:
Value(binary) State
xxxx xxxx x0xx 0000 Not ready to switch on
xxxx xxxx x1xx 0000 Switch on disabled
xxxx xxxx x01x 0001 Ready to switch on
xxxx xxxx x01x 0011 Switched on
xxxx xxxx x01x 0111 Operation enabled
xxxx xxxx x00x 0111 Quick stop active
xxxx xxxx x0xx 1111 Fault reaction active
xxxx xxxx x0xx 1000 Fault
-91-
Ethernet Communication Card EtherCAT communication card
BIT4: Voltage enable, when this bit is 1, it indicates that the main circuit power supply is
normal.
BIT9: Remote, when this bit is 1, it indicates that the slave station is in the OP state, and the
master station can control the drive through PDO.
BIT10: Target reached, this bit differs in meaning under different control modes. When this bit
is 1, in cyclic synchronous position mode, it indicates that target position is reached, while in
cyclic synchronous velocity mode, it indicates that reference speed is reached; in homing
mode, it indicates that homing is completed.
2. Set 【6040h: Control word】 to enable the drive (set it to 0x0F for enabling).
3. Set 【607Ah: Target position】 to the target position (unit: user unit).
4. Query for 【6064h: Position actual value】 to obtain actual position feedback of the motor.
5. Query for 【6041h: Status word】 to obtain the status feedback of the drive (following error,
target reached and internal limit active).
6. For function details, see function parameters in group P21 in GD350 and the specific
function commissioning instructions in the basic operations in the manual.
2. Set tens of P21.00 (Position command source) to 1 (Digital position), and set P21.16 (Digital
positioning mode).
3. Set 【6040h: Control word】 to enable the drive (set it to 0x0F for enabling).
4. Set 【607Ah: Target position】 to the target position (unit: user unit).
5. Query for 【6064h: Position actual value】 to obtain actual position feedback of the motor.
-92-
Ethernet Communication Card EtherCAT communication card
6. Query for 【6041h: Status word】 to obtain the status feedback of the drive (following error,
target reached and internal limit active).
7. For function details, see function parameters in group P21 in GD350 and the specific
function commissioning instructions in the basic operations in the manual.
3. Set 【6040h: Control word】 to enable the drive (set it to 0x0F for enabling). Homing
operation start (Bit4) changes from 0 to 1 (Control word Bit4 is set to 1). However, the change
from 1 to 0 will terminate Homing.
4. The motor queries the limit switch and Home switch to complete Homing.
5. Query 【6041h: Status word】 to obtain the status feedback of the drive (Homing error,
Homing attained, and Target reached).
6. For function details, see function parameters in group P22 in GD350 and the specific
function commissioning instructions in the basic operations in the manual.
2. Set 【6040h: Control word】 to enable the drive (set it to 0x0F for enabling) and start the
motor for running.
3. Set【60FFh: Target velocity】to set the target rotation speed (unit: rpm), which corresponds
to P00.10 (a positive value indicates forward rotation and a negative value indicates reverse
rotation).
4. Query【6041h: Status word】 to obtain the status feedback of the drive (Speed zero, Max
slippage error, Target reached, and Internal limit active).
3. Set 【6040h: Control word】 to enable the drive (set it to 0x0F for enabling) and start the
motor for running.
-93-
Ethernet Communication Card EtherCAT communication card
5. Query【6041h: Status word】 to obtain the status feedback of the drive (Speed zero, Max
slippage error, Target reached, and Internal limit active).
-94-
Ethernet Communication Card EtherCAT communication card
3. Open TwinCAT2
Open the menu as shown in the above figure, select "Show Realtime Ethernet Compatible
Devices…", pop up a dialog box as shown in the following figure, select the local area network
card, and click "Install". After the network card is installed successfully, it will shown under the
menu "Installed and ready to use devices". (Note: Please choose the network cards
configured with Intel chips)
-95-
Ethernet Communication Card EtherCAT communication card
6. Scan device
Select "I/O Devices" menu, and right-click to select "Scan Devices…" to scan the device.
-96-
Ethernet Communication Card EtherCAT communication card
Pop up the following dialog box, and select "Yes". Then the device enters the free running
mode.
-97-
Ethernet Communication Card EtherCAT communication card
The following figure shows "Box3" which is the slave device scanned, and view that the device
enters the "OP" state.
Select "DO Outputs" menu, and there are data sent from the master station to the VFD, which
can be used to set commands and rotation speed.
-98-
Ethernet Communication Card EtherCAT communication card
Select "DI Intputs" menu, and there are data sent from the VFD to the master station, which
can be used to return the statuses and and rotation speed.
Select "CoE–Online" menu, as shown in the figure below. Read the VFD function code
parameters through index 0x2000, and double click 0x2000 to pop up a dialog box. Write the
parameter address in the dialog box, and click "OK". The returned results are stored in index
0x2001. Similarly, Write the VFD function code parameters through index 0x2002, and the
written results are stored in index 0x2003.
-99-
Ethernet Communication Card EtherCAT communication card
-100-
Ethernet Communication Card Modbus TCP communication card
2. This manual only describes how to operate the Modbus TCP communication card and
the related commands but does not provide details about the Modbus TCP protocol. For
more information about the Modbus TCP protocol, read the related specialized articles or
books.
3. This communication card is defined as a Modbus TCP slave station communication card
and is used on a VFD that supports Modbus TCP communication.
4. The communication card supports the star-shaped network topology and linear network
topology.
5. The communication card supports 32 inputs/outputs to read and write process data, read
state data, and read and write function parameters of a VFD.
5.2 Features
1. Supported functions
Supports the Modbus TCP protocol and Modbus TCP slave stations.
Provides two Modbus TCP ports and supports the 10/100M full/half-duplex operation
Modbus TCP uses TCP/IP for information control and transmission over the Ethernet, allowing
the sending of explicit packets, namely, point-to-point messages that are not time critical. The
Modbus TCP application layer adopts the Modbus protocol, which is also used by Modbus
RTU.
Same as Modbus RTU, Modbus TCP requires the PLC/PC to send the read or write
commands, and the communication card returns the operation result after data forwarding to
complete the data transmission.
-101-
Ethernet Communication Card Modbus TCP communication card
3. Communication ports
Standard RJ45 ports are used in Modbus TCP communication. The communication card
provides two RJ45 ports with no transmission direction defined, and therefore you can insert a
cable into the port without regard to its direction. Figure 5-1 shows the ports, and Table 5-1
describes the functions of the ports.
4. State indicators
The Modbus TCP communication card provides4 LED indicators and 4 network port indicators
to indicate its states. Table 5-2 describes the state indicators.
-102-
Ethernet Communication Card Modbus TCP communication card
Use CAT5, CAT5e, and CAT6 network cables for electrical wiring. When the communication
distance is greater than 50 meters, use high-quality network cables that meet the national
standards.
-103-
Ethernet Communication Card Modbus TCP communication card
Switch
Note: An Ethernet switch must be available when the star topology is used.
5.4 Communication
5.4.1 Communication settings
The Modbus TCP communication card can function as only the Modbus TCP slave station.
Before communication, set Goodrive350 function codes, including:
1. Communication station address, IP address and subnet mask for the card
The default station address, IP address, and subnet mask for each communication card are 1,
192.168.0.1, and 255.255.255.0 respectively. You can change them to the address of a
network segment.
2. Control mode
If you want to control the VFD with the communication card, set the control mode to Modbus
TCP communication control. To be specific, set P00.01=2 (communication as the running
command channel) and set P00.02=0 (Modbus TCP communication channel) to control VFD
start and stop. If you want to set a value through Modbus TCP communication, change the
control way of corresponding function codes to Modbus TCP communication. Appendix B lists
related function codes.
Note: After the setting, the card can communicate normally. If you want to control the VFD
with the card, set related function codes to enable Modbus TCP communication control.
5.4.2 Packet format
Table 5-3 describes the structure of a TCP communication packet.
-104-
Ethernet Communication Card Modbus TCP communication card
MBAP PDU
Transaction Protocol Length Unit Function
Data
identifier identifier field identifier Code
2 bytes 2 bytes 2 bytes 1 byte 1 byte n bytes
Sequence number Includes
of packets, VFD
incremented by 1 Device function
0000=Modbu Modbus
after each Data address codes
s-TCP function
communication for length (station and data,
protocol code
distinguishing number) and the
between different length is
packets variable.
Through the above packets, you can set the VFD reference parameters, monitor the status
value, send control commands, monitor the running status of the VFD, and read and write the
VFD function codes. For specific operations, see the follow-up.
Parameter description:
Unit identifier: Slave station number (1–247).
Function code: Modbus function codes, as shown in Table 5.5.
Table 5-5 Modbus function codes
Data: The data of the first word is the address of the VFD function code, for example, P00.00
corresponds to the address of 0000h, and the subsequent data is the value to be read and
written.
Packet examples:
The command code 03H is used by the master to read data from the VFD. The count of data
to be read depends on the "data count" in the command. A maximum of 16 pieces of data can
be read. The addresses of the read parameters must be contiguous. Each piece of data
occupies 2 bytes, that is, one word. The command format is presented using the hexadecimal
system (a number followed by "H" indicates a hexadecimal value). One hexadecimal value
occupies one byte.
The command is used to read parameters and operation status of the VFD.
For example, starting from the data address of 0004H, to read two contiguous pieces of data
(that is, to read content from the data addresses 0004H and 0005H) of the VFD whose
address is 01H, the frame structures are described in the following.
From the response, the data in 0004H is 1388H (50.00Hz), and that in 0005H is 0000H
(00.00Hz).
This command is used by the master to write data to the VFD. One command can be used to
write only one piece of data. It is used to modify the parameters and running mode of the VFD.
For example, to write 5000 (1388H) to 0004H of the VFD whose address is 02H, the frame
structures are described in the following.
-106-
Ethernet Communication Card Modbus TCP communication card
The command code 10H is used by the master to write data to the VFD. The quantity of data
to be written is determined by "Data count", and a maximum of 16 pieces of data can be
written.
For example, to write 5000 (1388H) and 50 (0032H) respectively to 0004H and 0005H of the
VFD whose slave address is 02H, the frame structures are described in the following.
1388
Request 0001 0000 000B 02 10 0004 0002 04
0032
Number
Function Write Number
Meaning MBAP of Data
Exa code address of bytes
registers
mple
Response 0001 0000 0006 02 10 0004 0002
Number
Function Write
Meaning MBAP of
code address
registers
5.4.4 Data address definition
This section describes the address definition of communication data. The addresses are used
for controlling the running, obtaining the status information, and setting function parameters of
the VFD.
The address of a function code consists of two bytes, with the high-order bit on the left and
low-order bit on the right. The high-order bit ranges from 00 to ffH, and the low-order bit also
ranges from 00 to ffH. The high-order bit is the hexadecimal form of the group number before
the dot mark, and low-order bit is that of the number behind the dot mark. Take P14.00 as an
example: The group number is 14, that is, the high-order bit of the parameter address is the
hexadecimal form of 0E; and the number behind the dot mark is 00, that is, the low-order bit is
the hexadecimal form of 00. Therefore, the function code address is 0E00H in the
hexadecimal form. For example, the parameter address of P14.03 is 0E03H.
-107-
Ethernet Communication Card Modbus TCP communication card
Note:
The parameters in the P99 group are set by the manufacturer and cannot be read or
modified. Some parameters cannot be modified when the VFD is running; some cannot
be modified regardless of the VFD status. Pay attention to the setting range, unit, and
description of a parameter when modifying it.
In addition to modifying the parameters of the VFD, the master can also control the VFD, such
as starting and stopping it, and monitoring the operation status of the VFD. The following table
describes other function parameters.
-108-
Ethernet Communication Card Modbus TCP communication card
-109-
Ethernet Communication Card Modbus TCP communication card
-110-
Ethernet Communication Card Modbus TCP communication card
The Read/Write (R/W) characteristics indicate whether a function can be read and written. For
example, "Communication-based control command" can be written, and therefore the
command code 6H is used to control the VFD. The R characteristic indicates that a function
can only be read, and W indicates that a function can only be written.
Note: Some parameters in the preceding table are valid only after they are enabled. Take the
running and stop operations as examples, you need to set "Running command channel"
(P00.01) to "Communication", and set "Communication running command channel" (P00.02)
to the Modbus communication channel. For another example, when modifying "PID setting",
-111-
Ethernet Communication Card Modbus TCP communication card
The following table describes the encoding rules of device codes (corresponding to the
identification code 2103H of the VFD).
Eight
Eight low-order
high-order bits Meaning Meaning
bits of code
of code
0x08 GD35 vector VFD
0x09 GD35-H1 vector VFD
0x0a GD300 vector VFD
01 GD
0xa0 GD350 vector VFD
0xa1 GD350-UL vector VFD
0xa2 GD350A vector VFD
5.4.5 Fieldbus scale
In practical applications, communication data is represented in the hexadecimal form, but
hexadecimal values cannot represent decimals. For example, 50.12 Hz cannot be
represented in the hexadecimal form. In such cases, we can multiply 50.12 by 100 to obtain an
integer 5012, and then 50.12 can be represented as 1394H (5012 in the decimal form) in the
hexadecimal form.
The fieldbus scale depends on the number of decimals in the value specified in "Detailed
parameter description" or "Default value". If there are n decimals in the value, the fieldbus
scale m is the nth-power of 10. Take the following table as an example, m is 10.
Function
Name Description Setting range Default
code
Wake-up-from-sl 0.0–3600.0s (valid when P01.15 is
P01.20 0.00–3600.0 0.0s
eep delay 2)
Restart after 0: Disable
P01.21 0–1 0
power failure 1: Enable
The value specified in "Setting range" or "Default" contains one decimal, so the fieldbus scale
is 10. If the value received by the upper computer is 50, the value of "Wake-up-from-sleep
delay" of the VFD is 5.0 (5.0=50/10).
To set the "Wake-up-from-sleep delay" to 5.0s through Modbus communication, you need first
to multiply 5.0 by 10 according to the scale to obtain an integer 50, that is, 32H in the
hexadecimal form.
-112-
Ethernet Communication Card Modbus TCP communication card
After receiving the command, the VFD converts 50 into 5.0 based on the fieldbus scale, and
then sets "Wake-up-from-sleep delay" to 5.0s.
Error message responses are sent from the VFD to the master. The following table describes
the codes and definitions of the error message responses.
-113-
Ethernet Communication Card Modbus TCP communication card
When returning a response, the slave device uses a function code domain and fault address
to indicate whether it is a normal response (no error) or exception response (some errors
occur). In a normal response, the device returns the corresponding function code and data
address or sub-function code. In an exception response, the device returns a code that is
equal to a normal code, but the first bit is logic 1.
For example, if the master device transmits a request message to a slave device for reading a
group of function code address data, the code is generated as follows:
In addition to the modification of the code, the slave device returns a byte of exception code
that describes the cause of the exception. After receiving the exception response, the typical
processing of the master device is to transmit the request message again or modify the
command based on the fault information.
Open TIA Portal V13, and create a new project as shown in the following figure.
-114-
Ethernet Communication Card Modbus TCP communication card
After a new project is created, click "Project view" in the lower left corner, and double click
"Add new device" in the interface, as shown in the following figure.
Select the correct PLC model, and click "OK" (PLC models used by our company are shown in
the following figure).
-115-
Ethernet Communication Card Modbus TCP communication card
Click "Program blocks", and double click "Main[OB1]" to open the programming interface, as
shown in the following figure.
Select "Others" under the "Communication" bar on the right, then select "MODBUS TCP" →
"MB_CLIENT", as shown in the following figure.
-116-
Ethernet Communication Card Modbus TCP communication card
Add 2 data blocks in "Add new block" under "Program blocks", namely "MB_CLIENT_TCON"
and "MB_Client_Data", as shown in the following figure.
Set the variables of these two data blocks respectively, as shown in the following figure.
-117-
Ethernet Communication Card Modbus TCP communication card
Uncheck the "Optimized block access" of the block, as shown in the following figure.
-118-
Ethernet Communication Card Modbus TCP communication card
Double click "Show all" under "PLC tags", and create variables, as shown in the following
figure.
Double click "Device configuration", right click the network port to select "Properties", set the
following parameters in the pop-up interface, and modify the local Ethernet network segment
to be the same as the following network segment.
-119-
Ethernet Communication Card Modbus TCP communication card
-120-
Ethernet Communication Card Modbus TCP communication card
-121-
Ethernet Communication Card Modbus TCP communication card
Download the PLC program to the PLC after the program has been written completely. Set
VFD function codes such as P00.01=2, P00.02=0, P00.06=8, P14.00=2, P16.02–P16.05=
192.168.0.2, and keep default values of P16.06–P16.13. Then, you can use the I0.0 input
terminal to control the VFD to start and stop at 50.00Hz through ModbusTCP protocol.
-122-
Ethernet Communication Card EtherCAT object dictionary
-123-
Ethernet Communication Card EtherCAT object dictionary
Access Data
Index Subindex Description Default value
permission type
object
Seventh
7 RW UINT32 0x60810020
mapping
Eighth mapping
8 RW UINT32 0x60B80010
object
RX PDO2 mapping parameter
Number of
supported
0 RW UINT8 2
mapping
1601h objects
First mapping
1 RW UINT32 0x60400010
object
Second
2 RW UINT32 0x607A0020
mapping object
RX PDO3 mapping parameter
Number of
supported
0 RW UINT8 2
mapping
1602h objects
First mapping
1 RW UINT32 0x60400010
object
Second
2 RW UINT32 0x607A0020
mapping object
RX PDO4 mapping parameter
Number of
supported
0 RW UINT8 2
mapping
1603h objects
First mapping
1 RW UINT32 0x60400010
object
Second
2 RW UINT32 0x607A0020
mapping object
TX PDO1 mapping parameter
Number of
1A00h supported
0 RW UINT8 8
mapping
objects
-124-
Ethernet Communication Card EtherCAT object dictionary
Access Data
Index Subindex Description Default value
permission type
First mapping
1 RW UINT32 0x60410010
object
Second
2 RW UINT32 0x60640020
mapping object
Third mapping
3 RW UINT32 0x606C0020
object
Fourth mapping
4 RW UINT32 0x60770010
object
Fifth mapping
5 RW UINT32 0x60F40020
object
Sixth mapping
6 RW UINT32 0x60610008
object
Seventh
7 RW UINT32 0x60B90010
mapping object
Eighth mapping
8 RW UINT32 0x60BA0020
object
TX PDO2 mapping parameter
Number of
supported
0 RW UINT8 8
mapping
1A01h objects
First mapping
1 RW UINT32 0x60410010
object
Second
2 RW UINT32 0x60640020
mapping object
TX PDO3 mapping parameter
Number of
supported
0 RW UINT8 8
mapping
1A02h objects
First mapping
1 RW UINT32 0x60410010
object
Second
2 RW UINT32 0x60640020
mapping object
TX PDO4 mapping parameter
1A03h Number of
0 RW UINT8 8
supported
-125-
Ethernet Communication Card EtherCAT object dictionary
Access Data
Index Subindex Description Default value
permission type
mapping
objects
First mapping
1 RW UINT32 0x60410010
object
Second
2 RW UINT32 0x60640020
mapping object
SM communication type
0 Max. sub-index RO UINT8 4
SM0
1 communication RO UINT8 0x01
type
SM1
2 communication RO UINT8 0x02
1C00h
type
SM2
3 communication RO UINT8 0x03
type
SM3
4 communication RO UINT8 0x04
type
RxPDO assignment
0 Max. sub-index RW UINT8 1
1C12h RxPDO
1 assigned object RW UINT16 0x1600
index
TxPDO assignment
0 Max. sub-index RW UINT8 1
1C13h TxPDO
1 assigned object RW UINT16 0x1A00
index
SM synchronization output parameter
0x00 Max. sub-index RO UINT8 0x20
Synchronization
0x01 RW UINT16 0x02
1C32h mode
0x02 Cycle time RO UINT32 0
0x03 Switching time RO UINT32 0
0x04 Supported RO UINT16 0x4006
-126-
Ethernet Communication Card EtherCAT object dictionary
Access Data
Index Subindex Description Default value
permission type
synchronization
type
Min. periodic
0x05 RO UINT32 0x0003D090
time
Calculation and
0x06 RO UINT32 0
replication time
0x07 Reserved RW UINT32 0
Obtained
0x08 RW UINT16 0
periodic time
0x09 Delay time RO UINT32 0
0x0A Sync0 time RW UINT32 -
SM event loss
0x0B RO UINT32 0
counter
Circulation
0x0C RO UINT32 0
timeout counter
Counter of too
0x0D RO UINT32 0
short switching
Synchronization
0x20 RO UINT8 0
error
SM synchronization input parameter
0x00 Max. sub-index RO UINT8 0x20
Synchronization
0x01 RW UINT16 0x02
mode
0x02 Cycle time RO UINT32 0
0x03 Switching time RO UINT32 0
Supported
0x04 synchronization RO UINT16 0x4006
type
1C33h
Min. periodic
0x05 RO UINT32 0x0003D090
time
Calculation and
0x06 RO UINT32 0
replication time
0x07 Reserved RW UINT32 0
Obtained
0x08 RW UINT16 0
periodic time
0x09 Delay time RO UINT32 0
0x0A Sync0 time RW UINT32 -
-127-
Ethernet Communication Card EtherCAT object dictionary
Access Data
Index Subindex Description Default value
permission type
SM event loss
0x0B RO UINT32 0
counter
Circulation
0x0C RO UINT32 0
timeout counter
Counter of too
0x0D RO UINT32 0
short switching
Synchronization
0x20 RO UINT8 0
error
Read function
2000h 0 RW UINT32 0
codes
2001h 0 Read response RO UINT32 0
Write function
2002h 0 RW UINT32 0
codes
2003h 0 Write response RO UINT32 0
603Fh 0 Error code RO UINT16 0
6040h 0 Control word RW UINT16 0
6041h 0 Status word RO UINT16 0
Suspension
605Dh 0 RW INT16 0
mode
Operation
6060h 0 RW UINT16 0
mode
Operation
6061h 0 RO UINT16 0
mode display
Position
6062h 0 RO DINT32 0
command
Position
6063h 0 RO DINT32 0
feedback
Position
6064h 0 RO DINT32 0
feedback
Position
6065h 0 RW UDINT32 0
deviation range
Too-large
position
6066h 0 RW UINT16 0
deviation
timeout
Position pulse
6067h 0 RW UDINT32 0
range
-128-
Ethernet Communication Card EtherCAT object dictionary
Access Data
Index Subindex Description Default value
permission type
606Ch 0 Actual speed RW DINT32 0
6071h 0 Target torque RW INT16 0
6072h 0 Max. torque RW UINT16 0
6073h 0 Max. current RO UINT16 0
Motor rated
6075h 0 RO UDINT32 0
current
Motor rated
6076h 0 RO UDINT32 0
torque
6077h 0 Actual torque RO INT16 0
6078h 0 Actual current RO INT16 0
6079h 0 Bus voltage RO UDINT32 0
607Ah 0 Target position RW INT16 0
Position range limit
Number of
0 RW UINT8 2
sub-indexes
607Bh Min. position
1 RW INT32 0
range limit
Max. position
2 RW INT32 0
range limit
Coordinate
607Ch 0 RW DINT32 0
deviation
Speed in
6081h 0 industrial RW UDINT32 0
regulations
ACC in
6083h 0 industrial RW UDINT32 0
regulations
DEC in
6084h 0 industrial RW UDINT32 0
regulations
Gear ratio
Number of
0 RW UINT8 2
sub-indexes
6091h Motor
1 RW UINT32 0x00000001
resolution
Bearing axle
2 RW UINT32 0x00000001
resolution
-129-
Ethernet Communication Card EtherCAT object dictionary
Access Data
Index Subindex Description Default value
permission type
Position factor
Number of
0 RW UINT8 2
6093h sub-indexes
1 Molecule RW UINT32 0x00000001
2 Set constant RW UINT32 0x00000001
6098h 0 Zeroing mode RW INT16 0
Zeroing speed
Number of
0 RW UINT8 2
sub-indexes
Search limit
6099h 1 RW UINT32 0
switch speed
Search
2 zero-phase RW UINT32 0
speed
60B8h 0 Probe control RW UINT16 0
60B9h 0 Probe status RO UINT16 0
Probe position
60BAh 0 RO INT32 0
rising edge
Position
60F4h 0 RO INT32 0
deviation
60FDh 0 Digital input RO UINT32 0
60FEh 0 Digital output RO INT32 0
60FFh 0 Target speed RW INT32 0
6502h 0 Drive mode RO UINT32 0x000003A5
-130-
Ethernet Communication Card Related function codes
-141-
Ethernet Communication Card Related function codes
-142-
Ethernet Communication Card Related function codes
-143-
Ethernet Communication Card Related function codes
-145-
Ethernet Communication Card Related function codes
-147-
66001- 00751