Professional Documents
Culture Documents
the reliability of the equipment. In order to reduce the cabling protocol has to transport. As shown in Table I, considering
issue, sometimes, a bus topology is used. In this bus topology various files that describe pieces to be printed in G-Code
the motor drivers are placed near the motor and connected to a format, the time in which the printing has to be made and the
single energy bus. From the central controller, a serial link bus number of G-Code commands that have to be sent, we can
transmits commands to the local controller based on a MCU estimate the necessary baud rate (Baud/s) and the average
and a motor driver. There is a local controller for every motor number of commands per second (Com/s) that we have to
or set of motors that are located physically close. For the serial transmit. We can see how 35Com/s is the worst case and in
link command bus, Controller Area Network (CAN) bus [7], order to keep a safe range we can use 40Coms/s as a limit of
Mbus, Profibus-DP [8] Ethernet [9] or 485 [10] are commonly what the communication system must provide.
used. However, this configuration needs a double cabling and
connectors which increases costs and decreases reliability. TABLE I. COMMUNICATION NEEDS IN A PLC-DSC
In this paper we propose a new alternative based on the use Printing Time (s) Num_lines_G-Cod Bytes/line Baud/s Com/s
of PLC to control several motors and actuators distributed 40.740 645.488 28 3.549 16
physically over the equipment which must move
synchronously. On this configuration the central controller and 10.620 102.937 28 2.171 10
the local controllers are connected through a PLC network 39.780 1.095.914 28 6.171 28
using the same cables used to send the power to the motors 54.180 1.900.855 28 7.859 35
and actuators. This has the advantage of avoiding the
additional serial control bus decreasing the weight, the BOM 65.880 464.997 28 1.581 7
and the manufacturing costs and increasing the reliability of
the equipment. The power bus of this configuration could be
indistinctly DC or AC and only the coupling of PLC node In the simplest case, if the total communication needs in a
needs to be adapted. PLC-DSC is proportional to the number of motors and
actuators that need to be controlled (Nm) then for each
command transmitted by the central controller, each of the
II. A NEW PLC STACK FOR DISTRIBUTED AND motors involved on the command must send a confirmation of
SYNCHRONOUS CONFIGURATIONS the execution of the order and information of its internal state.
We can name the proposed configuration a PLC Distributed We can assume that this produces similar traffic in the
and Synchronous Configuration (PLC-DSC). The proposed opposite direction for each motors or actuators. Table II
configuration is based on the use of PLC for the control of provides the total communication needs of this type, that we
several motors and actuators distributed physically over the can name symmetrical, of PLC-DSC.
equipment. On this configuration the central controller and the
To have a limit rate of 40Com/s the command and the
local controllers are connected through a PLC network using
response must be sent in less than 25ms. If we try to use
the same cables used to send the power to the motors and
communication for compatible physical layers, or at least
actuators. This has the advantage of avoiding the additional
similar, to the aforementioned protocols such as PRIME or
control bus decreasing the weight, the BOM, the
G3, we must take into account the structure of a frame and the
manufacturing costs and increasing the reliability of the
duration of the symbols that forms it.
equipment. The power buss of this configuration could be
indistinctly DC or AC and only the coupling of PLC node
needs to be adapted. TABLE II. COMMUNICATION NEEDS IN A SYMMETRICAL PLC-DSC
51
2019 1st Global Power, Energy and Communication Conference (IEEE GPECOM2019), June 12-15, 2019, Cappadocia, Turkey
PRIME G3
2.048ms 4.48ms Mx2.24ms
Response Request Response Request
2 symbols M symbols
Preamble 2.048 2.048 6.080 6.080
Fig. 1. Structure of PHY frame of PRIME [5] Header 4.480 4.480 8.340 8.340
Payload 4.480 34.844 2.780 15.290
Similarly, we can consider using a PHY layer similar to G3.
Symbols 2.240 2.240 695 695
Figure 2 shows the structure of a G3 PHY frame where the
preamble with 9.5 symbols lasts 6.08ms and the header (FCH) Nsp 2 16 4 22
with 3 symbols lasts 8.34ms. To transmit a command of 28 Msg duration 11.008 41.372 17.200 29.710
bytes, a frame with D8PSK and convolutional coding of 4 Resp time left 208.628 220.290
symbols, a total duration of 17.2ms is needed. Considering that
SF duration 250.000 250.000
the total period of a command is 25ms we do not have time for
any response frame. Num messages 19 1 13 1
52
2019 1st Global Power, Energy and Communication Conference (IEEE GPECOM2019), June 12-15, 2019, Cappadocia, Turkey
53
2019 1st Global Power, Energy and Communication Conference (IEEE GPECOM2019), June 12-15, 2019, Cappadocia, Turkey
This information of position is sent to the PLC channel Figure 6 shows an example of the filter necessary on the
through a designed coupling stage. The information is sent power supply of the PLC-DSC to limit the noise on the PLC
from the EMITs pins of the PL360 that have connected a 26 medium from the power supply and to assure a high
resistor to ensure that in case of short circuit system does not impedance on communication band.
break down.
Both transmission and reception stages were designed to
operate in the band of 150kHz to 500kHz and in search of a
constant impedance of 50 in the channel despite having none
or up to 15 motors connected. It has been considered that
Nema17 behaves as two 2.2mH parallel inductances in series
with a 1.04 resistor that are equivalent, for this operating
frequency, to 470k. Therefore, 15 motors behave as an
impedance of around 31k that will be in parallel with the
motor impedance.
Figure 5 provides the designed coupling stage. In the
reception stage, a single-pole low pass filter limits the noise
Fig. 6. Motor filter of the ECU
above 500kHz. After that, the Automatic Gain Control (AGC)
circuit, a resistor, controlled by the PL360 is used to attenuate
the incoming PLC signal in case its amplitude is high enough IV. CONCLUSIONS
to exceed the input dynamic range of the embedded ADC.
In this paper we propose a new PLC-DSC (PLC Distributed
In addition, the diode D3 provides protection in case of and Synchronous Configuration) where distributed motors are
overvoltage coming from the PLC medium. R20 provides controlled synchronously by a new PLC stack. This PLC stack
impedance matching with the ADC and C38 DC decoupling is oriented to industrial and automotive applications and is
capacitor. based on the PHY layer that is compatible with commercial
The transmission circuit is composed of a second order devices that also support PRIME or G3 PLC protocols.
serial band filter to limit the transmission out of the band, and Finally, as an example of use, we introduce a new motor
a second order parallel filter to match the impedance of the control board and its design considerations which uses this
connected line. Again, C40 and C41 blocking DC voltage and PLC communication stack.
D4 provides additional protection in case of overvoltage
coming from the PLC medium. REFERENCES
It is also important to take into consideration that the [1] "Characterization of IP-Based Communication for Smart Grid Using
Software-Defined Networking," S. Rinaldi, F. Bonafini, P. Ferrari, A.
stepper motor produces noise in the communication band that
Flammini, E. Sisinni, D. Di Cara, N. Panzavecchia, G. Tinè, A.
needs to be filtered by the motor filter to limit the noise on the Cataliotti, V. Cosentino, S. Guaiana, in IEEE Transactions on
PLC medium. Instrumentation and Measurement. vol. 67, no. 10, pp. 2410-2419, Oct.
2018. ISSN: 0018-9456
[2] "Are we ready for SDN? Implementation challenges for software-defined
networks", S. Sezer, S. Scott-Hayward, P.K. Chouhan, B. Fraser, D.
Lake, J. Finnegan, N. Viljoen, M. Miller, N. Rao, IEEE
Communications Magazine, vol.51, no.7, pp.36,43, July 2013.
[3] "Software-Defined Energy Communication Networks: From Substation
Automation to Future Smart Grids", A Cahn, J. Hoyos, M. Hulse, E.
Keller, in Proc. of the IEEE SmartGridComm., pp.558,563, 2013.
[4] "Software defined networking applied to the heterogeneous infrastructure
of Smart Grid", S. Rinaldi, P. Ferrari, D. Brandao, S. Sulis, 2015 IEEE
World Conference on Factory Communication
[5] PRIME-Spec_v1.4
https://www.prime-alliance.org/wp-content/uploads/2014/10/PRIME-
Spec_v1.4-20141031.pdf
[6] “G3-PLC specification for powerline communication: Overview, system
simulation and field trial results” ISPLC2010, March 2010 Rio de
Janeiro, Brazil
Fig. 5. Coupling stage of the ECU
54
2019 1st Global Power, Energy and Communication Conference (IEEE GPECOM2019), June 12-15, 2019, Cappadocia, Turkey
[7] “The Distributed Control System for Humanoid Robot BHBIP” Hui Wei,
Mei Shuai, Zhongyu Wang in 2012 International Conference on
Computer Distributed Control and Intelligent Enviromental Monitoring
[8] “Development of a distributed control system for plc-based applications”,
li-ling wang, hong-ying wei, in Proceedings of the Ninth International
Conference on Machine Learning and Cybernetics, Qingdao, 11-14 July
2010
[9] “BLDCM Fuzzy Sliding Mode Control Based on Network Control
System” Yan Xiaojuan, Liu Jinglin in 2010 2nd International
Conference on Advanced Computer Control, Volume: 5 Pages: 332 –
335 Year: 2010
[10] “The Study on Distributed Control System based on PLC” Dong Yulin,
Cui Wenchong in 2nd International Conference on Industrial and
Information Systems July 2010
[11] G-Code https://en.wikipedia.org/wiki/G-code .
[12] ISO 6983-1:2009; https://www.iso.org/standard/34608.html .
[13] NEMA17; https://reprap.org/wiki/NEMA_17_Stepper_motor
[14] Ustepper; https://github.com/uStepper/uStepper
55