Chapter 2 Devices, Symbols and Instructions 2.3 EtherCAT Symbols The EtherCAT symbols are used to read states of EtherCAT slave. The symbols can be seen from the EtherCAT symbol table in the ISPSoft software. 2_ 2.4 Symbols During the process of developing a traditional program for a PLC, it generally takes much time to manage device addresses. Besides, managing or debugging the program in a big project is a burden on users. As a result, the concept of symbols in a high-level programming language is introduced into IEC 61131-3. A device in a PLC can be represented by a symbol, and a device can be automatically assigned to a symbol.
The time of assigning devices is saved, a program is more readable, and the efficiency of developing a program increases. Variables in ISPSoft are called symbols. As a result, variables are the same as symbols in terms of meaning in this manual. 2.4.1 Application of Symbols A symbol has to be declared before it is used. There are two types of symbols. They are global symbols and local symbols. used in the POU in which the local symbols are declared. Besides, the identifier of a local symbol in a POU can be the The global symbols in a project can be used in all the POUs* in the project, and the local symbols in a project can only be same as the identifier of a local symbol in another POU.
However, if the identifier of a local symbol declared in a POU is the same as the identifier of a global symbol, the system will automatically regard the local symbol declared in the POU as a local symbol. *Note : For further explanations regarding a POU, refer for ISPSoft User Manual. 2.4.2 Classes Symbols can be classified into four classes. The characteristics of these four classes are described below. VAR - General symbol The symbols of this class are for general operations only. The significance of a symbol of this class depends on the data type of the symbol. INPUT - Symbol used as an input pin of a function block A symbol of this class is used as an input pin of a function block.
It can only be declared in the function block. If a function block is called, the symbols of this class can receive the input values sent by the caller. Besides, in a ladder diagram, the symbols of this class are put at the left sides of function blocks, and the pins which receive the input values sent by the caller are assigned to the symbols of this class. OUTPUT - Symbol used as an output pin of a function block A symbol of this class is used as an output pin of a function block. It can only be declared in a function block. After the execution of a function block is complete, the operation result will be sent to the caller through the symbols of this class.
2-15 Range Default EtherCAT Symbol Data type Description settings eCAT Dis.SlaveAddress[…] _ WORD[199] The EtherCAT slave address that disconnected (n=0~198) 0~9999 0 eCAT Dis.Count _ WORD The number of EtherCAT slave address that disconnected 0~(216-1) 0