• Optics and Precision Engineering
  • Vol. 31, Issue 11, 1710 (2023)
Lingyu CHEN, Jieji ZHENG, Aihua HE, and Dapeng FAN*
Author Affiliations
  • College of Intelligence Science and Technology, National University of Defense Technology, Changsha410073, China
  • show less
    DOI: 10.37188/OPE.20233111.1710 Cite this Article
    Lingyu CHEN, Jieji ZHENG, Aihua HE, Dapeng FAN. Modeling development method for slave controller of real-time ethernet fieldbus[J]. Optics and Precision Engineering, 2023, 31(11): 1710 Copy Citation Text show less

    Abstract

    The slave controller is a fundamental component for realizing bus communication, field sensor acquisition, motor, and other actuator control functions in the industrial automation control system. To meet the needs of various industrial field actuators and sensors and to solve the problems of the cumbersome hardware and software design, low development efficiency, and difficult upgrading and transplantation of slave controllers, this paper proposes a model development method for slave controllers that involves analyzing the hardware and software components of typical slave controllers. The common real-time Ethernet communication processing model of slave controllers and the device control models of digital input/output (I/O), analog I/O, motion control, and communication interface conversion slaves in practical applications are established, and the model code is automatically generated and ported to realize the standardized and rapid development of slave controller software on the domestic hardware platform. The experimental results verify the effectiveness of the proposed model development method. This study provides a new method for the rapid development and upgrading of the localized slave controller software.
    Mc={Qc, Σc, Δc, δc, λc, qc0}(1)

    View in Article

    Qc={q0, q1, q2, q3, q4, q5}(2)

    View in Article

    Σc={a, b, c, d, e, f}(3)

    View in Article

    Δc={y0,y1,y2,y3,y4,y5}(4)

    View in Article

    tpd1(n+tcsw/Δt)=swi(n+tcsw/Δt), swi(n)=swi(n+tcsw/Δt)tpd1(n+tcsw/Δt)=tpd1(n)              , swi(n)swi(n+tcsw/Δt)(5)

    View in Article

    tpd2=tpd1^poli(6)

    View in Article

    DIvalue(n)=tpd2(n)               , maski=0DIvalue(n)=DIvalue(n-1)      , maski=1(7)

    View in Article

    Coni=Initc+1  ,mode=1 & tpd3(n)=1 & tpd3(n-1)=0Coni=Initc-1   ,mode=0 & tpd3(n)=0 & tpd3(n-1)=1(8)

    View in Article

    Frei=2k/(i=2k[tup(i)-tup(i-1)]+i=2k[tdown(i)-tdown(i-1)])(9)

    View in Article

    Dci=12ki=2ktdown(i-1)-tup(i-1)tup(i)-tup(i-1)+tdown(i)-tup(i)tdown(i)-tdown(i-1)(10)

    View in Article

    th=Dco/Freo         tl=(1-Dco)/Freo td=Pho/360Freo (11)

    View in Article

    pso(t)=0 , psen=0pso(t)=0 , psen=1 & 0t<tdpso(t)=1 , psen=1 &td+Cn(th+tl)t<td+th+Cn(th+tl)pso(t)=0 , psen=1 & td+th+Cn(th+tl)t<td+(Cn+1)(th+tl)(12)

    View in Article

    tpa1=ADi×resai×rangeai(13)

    View in Article

    AIvalue=(tpa1-oftai)×gianai(14)

    View in Article

    tpa2=DAvalue,     limaol<DAvalue<limaohlimaol,       DAvalue< limaol        limaoh,       DAvalue> limaoh        (15)

    View in Article

    DAo=tpa2×gainao+oftaoresao×rangeao(16)

    View in Article

    a(t)=Jt                         0t<t1 at                     t1t<t2at-J(t-t2)    t2t<t3(17)

    View in Article

    cmdvel(t)=vf+0.5Jt2  ,0t<t1 vf+0.5Jτ12+at(t-t1),t1t<t2vf+0.5Jτ12+atτ2+at(t-t2)-0.5J(t-t2)2,t2t<t3(18)

    View in Article

    a(t)=Jt , 0t<t1at, t1t<t2at-J(t-t2), t2t<t30, t3t<t4-J(t-t4), t4t<t5-dt, t5t<t6-dt+J(t-t6)  , t6t<t7(19)

    View in Article

    v(t)=vf+0.5Jt2,0t<t1vf+0.5Jτ12+at(t-t1),t1t<t2vf+0.5Jτ12+atτ2+at(t-t2)-0.5J(t-t2)2,t2t<t3vtp=vf+0.5Jτ12+atτ2+at(t-t2)-0.5J(t-t2)2,t3t<t4vtp-0.5J(t-t4)2,t4t<t5vtp-0.5Jτ52-dt(t-t5),t5t<t6vtp-0.5Jτ52-dtτ6-dt(t-t6)+0.5J(t-t6)2,t6t<t7(20)

    View in Article

    cmdpos(t)=Pf+0tv(t)dt(21)

    View in Article

    Lingyu CHEN, Jieji ZHENG, Aihua HE, Dapeng FAN. Modeling development method for slave controller of real-time ethernet fieldbus[J]. Optics and Precision Engineering, 2023, 31(11): 1710
    Download Citation