SSZTAL5 november   2016 AM3357 , DP83822H , DP83822HF , DP83822I , DRV8711 , TLK110

 

  1.   1
  2.   2
    1.     3
    2.     Conclusion

Thomas Mauer

When we talk about industrial or real-time Ethernet, we often refer to industrial Ethernet standards like EtherCAT, PROFINET, Ethernet/IP, Sercos III and Ethernet PowerLink.

These industrial Ethernet standards support a minimum cycle time in the tens of microseconds range – to give a specific example, PROFINET IRT v2.3 supports a cycle time as low as 31.25µs. However, the majority of industrial networks in factory automation and control are using cycle times greater than 500µs; often, the cycle time is in the millisecond range.

So you might have the following questions: Why would you need a cycle time as low as 4µs to exchange process data? What hardware can support such low cycle times? Which standard or standards support this? In this blog post, I will try to answer those questions.

Supporting a cycle time below 10µs opens up a totally new way of using real-time Ethernet in industrial and machinery applications. Let’s first review some common terms so we are on the same page.

First, in the context of industrial Ethernet, “real time” does not mean fast! Real time refers to an event, such as the cycle time to exchange process data occurring at a deterministic time. See Figure 1.

If the cycle time does not occur with the expected time, that means there is latency. Measuring latency over many cycle times enables you to determine the jitter of an industrial Ethernet network.

“Jitter” is the deviation of time when the deterministic event occurred. Typically, you want to keep jitter to a minimum. In industrial Ethernet, active components such as the Ethernet physical (PHY) device and the media access control unit (MAC) introduce jitter.

Another network parameter is “runtime delay,” which is the time that it takes for an Ethernet frame to get from the sender to the receiver. Runtime delay is a constant parameter and generated by every network component, such as the Ethernet cable, MAC and PHY. Because runtime delay is constant, it can get compensated during the engineering phase of the network, or measured by the network devices during run time.

“Cycle time” is a constant time period during which network devices exchange process data. The particular industrial Ethernet standard dictates the minimum cycle time; going back to my earlier example, PROFINET cannot have a faster cycle time than 31.25µs. Many industrial networks in factory and process automation use a cycle time between 500µs and 10ms to exchange process data. The cycle time is chosen once during the engineering phase of the network and does not change during the run time.

So, which applications require a 4µs cycle time? Let’s look at a specific industrial application example. A milling or computer numerical control (CNC) machine consists of a control unit and several stepper motors. See Figure 2.

The control unit uses two signals to control the stepper drive: a step or pulse-train-output (PTO) signal to control the amount of steps the motor has to turn and a directional (dir) signal to control the clockwise or counterclockwise turning of the stepper motor.

Each stepper motor requires the step and dir signals; those signals are wired in a star topology. The stepper motors have feedback (FB) and diagnostic information like motor-shaft position, current temperature and fault information. The FB information is sent back to the control unit through a custom interface.

GUID-46CCC513-C90C-414A-9489-AA4D261FECC5-low.jpg Figure 1 Definition of Real Time
GUID-F6887B17-BD3C-4C91-B418-404C2C6232C7-low.jpg Figure 2 CNC Machine

TI has developed a simple open real-time Ethernet (SORTE) protocol that supports a 4µs cycle time. This protocol can transport the step and dir signals for a four-axis CNC machine; in addition, it transports the FB and diagnostic information in the return channel. With a 4µs cycle time, the control unit can drive the stepper-motor frequency up to 250kHz. Another benefit when using real-time Ethernet is that you can reduce the wiring effort as your solution goes from a star to a line topology. Overall, you are now combining the forward and backward channel in a single cable – see Figure 3.

GUID-B6B0410B-9048-4CD4-8034-A97C3714672F-low.jpg Figure 3 CNC with Industrial Ethernet

The process data (step, dir, FB) is protected by a cyclic redundancy check (CRC). This makes the system robust against environmental disturbances like electromagnetic interference (EMI).

The SORTE protocol operates on the programmable real-time unit and industrial communication subsystem (PRU-ICSS), which is an industrial peripheral within Sitara™ and KeyStone™ processors from Texas Instruments. SORTE operates exclusively on the PRU-ICSS; therefore, the ARM Cortex-A8, A9 or A15 processors – depending on the device family – are available for industrial applications.

Conclusion

The four-axis CNC machinery is a good example where a fast process data cycle time is necessary, and for which real-time Ethernet is a good application fit.

We are demonstrating the CNC machine with the four-axis stepper driver using the SORTE protocol and 4µs cycle time at the upcoming SPS/IPC/Drive 2016 trade show. The trade show takes place in Nuremberg, Germany, Nov. 22-24. TI’s booth is in Hall 6, booth No. 441.

View available purchase options for designs kits, evaluation modules and/or the bill of materials.

The SORTE protocol are released as a TI Designs reference design series and the PRU firmware is provided in source code to enable you to differentiate the protocol for your product.

GUID-1A53907C-83C8-477E-A070-DCB45B645954-low.jpg Figure 4 4µs Cycle Time Enables 250kHz Control Loop on CNC Router Demonstration Panel - Shown at SPS/IPC/Drive Trade Show
GUID-83B6F87E-708E-43C0-80F1-5AD18ECF83C2-low.jpg Figure 5 4-Axis CNC Router with 250 kHz Control Loop with PRU-ICSS Based on SORTE Reference Design Board Image