ABOUT THIS DOCUMENT The present document provides you with information on the EPOS4 communication interfaces. Find the latest edition of the present document as well as additional documentation and software for EPOS4 positioning controllers also on the Internet: http://epos.maxongroup.com. Intended Purpose The purpose of the present document is to familiarize you with the described equipment and the tasks on safe and adequate installation and/or commissioning.
Take note of the following notations and codes which will be used throughout the document. Notation Explanation EPOS4 stands for “EPOS4 Positioning Controller” «Abcd» indicates a title or a name (such as of document, product, mode, etc.) refers to an item (such as part numbers, list items, etc.) ...
USB & RS232 Communication EPOS4 USB & RS232 Command Reference USB & RS232 COMMUNICATION EPOS4 USB & RS232 Command Reference 2.1.1 Read Functions 2.1.1.1 ReadObject Read an object value from the Object Dictionary at the given Index and Subindex. Request Frame...
Page 8
USB & RS232 Communication EPOS4 USB & RS232 Command Reference 2.1.1.3 SegmentRead Read a data segment of the object initiated with the command «InitiateSegmentedRead». Request Frame OpCode BYTE 0x62 BYTE 1 (number of words) [Bit 0] ControlByte Toggle Bit BYTE [Bit 1…7]...
Page 9
USB & RS232 Communication EPOS4 USB & RS232 Command Reference 2.1.2 Write Functions 2.1.2.1 WriteObject Write an object value to the Object Dictionary at the given Index and Subindex. Request Frame OpCode BYTE 0x68 BYTE 4 (number of words) BYTE...
Page 10
USB & RS232 Communication EPOS4 USB & RS232 Command Reference 2.1.2.3 SegmentWrite Write a data segment to the object initiated with the command «InitiateSegmentedWrite». Note that gateway communication is not supported. Request Frame OpCode BYTE 0x6A BYTE 1…129 (number of words) BYTE Length (max.
Page 11
USB & RS232 Communication EPOS4 USB & RS232 Command Reference 2.1.3 General CAN Commands 2.1.3.1 SendLSS Send a LSS master message to the CAN bus. Request Frame OpCode BYTE 0x7A BYTE Parameters BYTE[8] LSS master message Response Frame OpCode BYTE...
The data flow while transmitting and receiving frames are as follows: Figure 2-2 USB/RS232 communication – Commands Figure 2-3 USB/RS232 communication – Sending a data frame to EPOS4 Figure 2-4 USB/RS232 communication – Receiving a response data frame from EPOS4 EPOS4 Communication Guide 2-12 CCMC | 2019-11 | rel8759...
As a reaction to a bad OpCode or CRC value, the slave sends a frame containing the corresponding error code. For an example on composition and structure of EPOS4 messages chapter “2.2.9 Example: Command Instruction” on page 2-17. EPOS4 Communication Guide...
500 [ms] USB Frame Timeout 0x2006 0x00 500 [ms] Table 2-4 USB/RS232 communication – Timeout handling Note To cover special requirements, the timeout may be changed by writing to the Object Dictionary! EPOS4 Communication Guide 2-15 CCMC | 2019-11 | rel8759...
USB & RS232 Communication Data Link Layer 2.2.8 Slave State Machine Figure 2-7 USB/RS232 communication – Slave State Machine EPOS4 Communication Guide 2-16 CCMC | 2019-11 | rel8759...
USB or RS232. The command sent to the EPOS4 is “ReadObject”, it can be used to read an object with up to 4 bytes. ReadObject “Home Position” (Index = 0x30B0, Subindex = 0x00) from Node-ID 1 Figure 2-8 USB/RS232 communication –...
Page 18
SendStuffedData(&DataArray) Transmission order (low byte first): 0x90,0x02,0x60,0x02,0x01,0xB0,0x30,0x00,0x2E,0x62 D) WAIT FOR RECEIVE FRAME The EPOS4 will answer to the command “ReadObject” with an answer frame and the returned parameters in the data block as follows: Reception order (low byte first): 0x90,0x02,0x00,0x04,0x00,0x00,0x00,0x00,0x01,0x90,0x90,0x00,0x00,0x9A,0x5C Important: •...
Page 19
12) Calculate the CRC (use algorithm as to chapter “2.2.3.2 CRC Algorithm” on page 2-14). Thereby, valid value for CRC is “0” (zero): ArrayLength= Len + 2 CrcValue = CalcFieldCRC(&DataArray, ArrayLength) Valid = (0x0000 == CrcValue) G) CHECK 13) Check the EPOS4 receive frame. Response frame OpCode BYTE Read object 0x00...
The RS232 standard can only be used for point-to-point communication between a master and a single EPOS4 slave. It uses negative, bipolar logic with a negative voltage signal representing a logic “1”, and pos- itive voltage representing a logic “0”. Voltages of -3…-25 V with respect to signal ground (GND) are consid- ered logic “1”, whereas voltages of +3…25 V are considered logic “0”.
CAN Communication General Information CAN COMMUNICATION General Information maxon EPOS4 drives’ CAN interface follows the CiA CANopen specifications… • CiA 301 V4.2: CANopen application layer and communication profile ([2]) corresponds with the international standard EN 5325-4; Industrial communications subsystem based on ISO 11898 (CAN) ([11]) •...
Abbreviation Description Process Data Object – object for data exchange between several devices Programmable Controller – can serve as a CAN Master for the EPOS4 Read Only Read Write Service Data Object – peer-to-peer communication with access to the device’s...
CANopen Basics CANopen Basics Subsequently described are the CANopen communication features most relevant to the maxon’s EPOS4 positioning controllers. For more detailed information consult above mentioned CANopen documentation. The CANopen communication concept can be described similar to the ISO Open Systems Interconnection (OSI) Reference Model.
The recessive bits of the End of Frame (EOF) terminate the Data Frame. Between two frames, a recessive 3-bit Intermission field must be present. With EPOS4, only the Standard Frame Format is supported. Figure 3-12 CAN communication – Standard frame format •...
Communication Profile Area (CiA 301) 0x2000…0x5FFF Manufacturer-specific Profile Area (maxon) 0x6000…0x9FFF Standardized profile area 1st…8th logical device 0xA000…0xAFFF Standardized network variable area (not supported on EPOS4) 0xB000…0xBFFF Standardized system variable area (not supported on EPOS4) 0xC000…0xFFFF Reserved (not supported on EPOS4) Table 3-8 CAN communication –...
Network Management Objects provide services for network initialization, error control and device status control. Communication Objects Process Data Objects (PDO) Service Data Objects (SDO) Time Stamp Objects (not used on EPOS4) Special Function Objects Synchronization Objects (SYNC) Emergency Objects (EMCY) NMT Message...
4 TxPDOs. The actual number of available PDOs is indicated by the CANopen device's object dictio- nary and described by its firmware specification (such as the separately available documents «EPOS2 Firmware Specification» or «EPOS4 Firmware Specification»). The PDOs correspond to entries in the Object Dictionary and serve as an interface to objects linked to real time process data of the master's application code.
Synchronized Synchronous PDOs are triggered by the expiration of a specified transmission period synchro- nized by the reception of the SYNC object. Figure 3-15 CAN communication – PDO communication modes EPOS4 Communication Guide 3-28 CCMC | 2019-11 | rel8759...
SDOs are described by the communication parameter. The default Server SDO (S_SDO) is defined in the entry “1200h”. In a CANopen network, up to 256 SDO channels requiring two CAN identifiers each may be used. Figure 3-17 CAN communication – Object dictionary access EPOS4 Communication Guide 3-29 CCMC | 2019-11 | rel8759...
Asynchronous PDOs and SDOs can be transmitted at every time with respect to their priority. Hence, they may also be transmitted within the synchronous window. Figure 3-19 CAN communication – Synchronous PDO EPOS4 Communication Guide 3-30 CCMC | 2019-11 | rel8759...
The behavior's definition is part of the device profile’s scope. In “Operational”, all communica- tion objects are active. Object Dictionary access via SDO is possible. However, implementation aspects or EPOS4 Communication Guide 3-31 CCMC | 2019-11 | rel8759...
• Layer setting services (LSS) • Lifeguarding (Heartbeating) The command may be sent with Network Management (NMT) protocol. The EPOS4 automatically generates the transition after initialization is completed. A Boot-Up message is being sent. Remote flag Bit 9 of the Statusword. Table 3-11 CAN communication –...
0x80 NMT State “Pre-Operational”. 0x82 0 (all) All CANopen nodes (EPOS4 devices) will reset the communication. Reset The CANopen node (EPOS4 device) with Node-ID “n” will reset the Communication 0x82 communication. 0x81 0 (all) All CANopen nodes (EPOS4 devices) will reset.
«Vendor ID», «Product Code», «Revision Number» and «Serial Num- ber» of the CANopen «Identity object» 0x1018 (EPOS4 Firmware Specification). In the network, there must not be other LSS Slaves possessing the same LSS address.
• 0x42 to submit the Revision Number, • 0x43 to submit the Serial Number («Identity object» 0x1018; EPOS4 Firmware Specification). Then, the single addressed LSS Slave changes to configuration state and answers by sending a command specifier 0x44 response. Figure 3-26 LSS –...
0 table index CAN bit rate codes protocol successfully completed error code bit timing not supported specific error always 0 Figure 3-28 LSS – Configure Bit Timing Parameters EPOS4 Communication Guide 3-37 CCMC | 2019-11 | rel8759...
LSS address range to the full address area first, then requests the identify remote slave. The range (which comprises one or more responded LSS Slaves) will be split in two sub-areas. The request to the sub- areas will be repeated until each LSS Slave has been identified («Identity object» 0x1018; EPOS4 Firm- ware Specification).
EtherCAT Communication ETHERCAT COMMUNICATION The functionality of the EPOS4 can be extended with an EtherCAT communication by using an EtherCAT Card in extension slot 1 or a Connector Board with EtherCAT functionality. • ETG.1000 V1.0.4: EtherCAT Specification ([6]) corresponds with the international standard IEC 61158-x-12 Industrial communication networks –...
Sync Manager. Operation of the connected EPOS4 (the Slave) requires its prior initialization by the Master via the ESM. Within the ESM, transitions between certain states must follow a given scheme and will be initiated by the Master.
• Acyclic as well as cyclic communication is active Operational • Master and Slave exchange setpoint and actual values • EPOS4 be enabled and operated via the CoE protocol • Only FoE is possible (Mailbox) Bootstrap • Firmware download via FoE Table 4-16 EtherCAT communication –...
EtherCAT communication – ESM control register Integration of ESI Files SDOs are used to access the object dictionary. The corresponding interface is CoE. The EPOS4 is described with an XML file bearing the so-called ESI (EtherCAT Slave Information). For in-detail description and examples on integration into the EtherCAT master environment separate document «EPOS4 Application Notes», chapter “EtherCAT Integration”.
GATEWAY COMMUNICATION (USB OR RS232 TO CAN) Using the gateway functionality, the master can access all other EPOS4, EPOS2, or EPOS devices con- nected to the CAN Bus via the gateway device’s USB port or RS232 interface. Even other CANopen devices (I/O modules) supporting the CANopen standard CiA 301 may be accessed.
Page 46
Gateway Communication (USB or RS232 to CAN) • • p a g e i n t e n t i o n a l l y l e f t b l a n k • • EPOS4 Communication Guide 5-46...
Communication Error Code Definition COMMUNICATION ERROR CODE DEFINITION The following abort codes (= errors) are defined by CANopen Communication Profile CiA 301 and in use by the EPOS4. Codes greater then 0x0F00 0000 are manufacturer-specific (maxon specific). Abort code Name...
Page 48
Communication Error Code Definition • • p a g e i n t e n t i o n a l l y l e f t b l a n k • • EPOS4 Communication Guide 6-48 CCMC | 2019-11 | rel8759...
Page 49
USB/RS232 communication – Sending a data frame to EPOS4 ....... .
Page 50
Communication errors ..............47 EPOS4 Communication Guide...
Page 51
InitiateSegmentedWrite (function) 9 Subindex cannot be written (abort code) 47 Subindex error (abort code) 47 LSS (definition) 21 Toggle error (abort code) 47 Transfer or store error (abort code) 47 Transmit (definition) 22 EPOS4 Communication Guide Z-51 CCMC | 2019-11 | rel8759...
Page 52
20 Value range error (abort code) 47 Write only error (abort code) 47 WriteObject (function) 9 Wrong device state error (abort code) 47 Wrong NMT state error (abort code) 47 EPOS4 Communication Guide Z-52 CCMC | 2019-11 | rel8759...
Page 53
Index • • p a g e i n t e n t i o n a l l y l e f t b l a n k • • EPOS4 Communication Guide Z-53 CCMC | 2019-11 | rel8759...