¬O¤£¬OS7-400 CPU¡]¤£±a«á³Æ¹q¦À¡^¦bÃö¹q/¶}¹q«áªºª¬ºA»P§@¤F¤@¦¸¥þ³¡´_¦ì«áªºª¬ºA¤@¼Ë¡H
¸Ñµª¡G
¦b¤£±a«á³Æ¹q¦À¼Ò¦¡¤U±¼¹q©Î§@¥þ³¡´_¦ì(MRES)«á¡AS7-400-CPUªº¤U¦C¦sÀx°Ï³Q´_¦ì¡G
°ÊºA¸Ë¸ü¤º¦s (RAM)
¥D¤º¦s
«Y²Î¤º¦s
¦b©Ò¦³³o¨Ç¦sÀx°Ïùتº¼Æ¾Ú¡A°£MPI°Ñ¼Æ(¨Ò¦p¡A CPUªºMPI¦a§})¥~¡A³£·|¥á¥¢¡C±¼¹q«áMPI°Ñ¼Æ¤´µM«O¯dµÛ¡A¦]¦¹¨âºØ±¡ªp¤U CPUªº°Ê§@¬O¤@¼Ëªº¡A´N¬O»¡¡A¦b±¼¹q©Î§@¤F¤@¦¸¥þ³¡´_¦ì«á¡A CPU ¤´¥i¥H³q°T¡C¹q·½¬G»Ù«á±Ò°Êªº¿ìªk´N¬O«±Ò°Ê¡C
¬°¦ó¤T¨B±±¨î(¶}Ãö STEP3_ON = TRUE)ªº®Õ¥¿½d³ò¨ü¨ì¨î¡H
¸Ñµª¡G
¦pªG¨Ï¥Î(S)FB43 (PULSEGEN)¡A±N¥¦Ì°Ñ¼Æ¤Æ¥H«K¯à°÷±o¨ì¤@Ó¦³3¨B±±¨î°Ê§@ªºPID±±¨î¾¹¡C³oºØ±¡ªp¤U¡A¶}Ãö¡§STEP3_ON¡¨³Q³]¸m¬°¡§TRUE¡¨¡C¹ï©ó¤@Ó¤£µ¥©ó¡§1¡¨ªº¤ñ²v¦]¤l(¡§RATIOFAC¡¨)¡A¦³®Äªº®Õ¥¿½d³ò¦³¥i¯à¨ü¡C
¹ê¨Ò¡G
¦bRATIOFAC = 0.5 (¤£¦Pªº¼ö-§N©ñ¤j)ªº¤T¨B±±¨î¾Þ§@¼Ò¦¡¤¤¡A¦³®Äªº§N«o®Õ¥¿½d³ò´î¬°5-50%¡C«ùÄòªº§N«o¤£¦A¬O¥i¯àªº¡C
¥H¤U²£«~¨ü¦¹¼vÅT¡G
STEP 7 Basis¤¤ªºPID±±¨î
Modular PID ±±¨î
CPU 314 IFM¤¤ªºSFB¶ô
CFC ¤¤ªº ELEMENTA ®w
PID ¦Û¾ã©w³n¥ó¥]¤¤ªº¼Ë¨Ò
¸É±Ï±¹¬I¡G
±NPULSEGEN¶ô¤Wªº¡§RATIOFAC¡¨©l²×¸m¦¨¡§1¡¨¤£ÅÜ¡C
¦b±±¨î¾¹©MPULSEGEN¶ô¤§¶¡´¡¤J¥H¤Uºâªk¡G
//§N«o®É±±¨î¿é¥X®Õ¥¿
INV = LMN (PID±±¨î¾¹ªº¿é¥X)
LMN<0.0 DANN INV = LMN*RATIOFAC
¦b§N«o¼ÐÃÑ«á¡A´¡¤J¥H¤Uºâªk¡G
//§N«o¼ÐÃÑ«á®Õ¥¿¸û§Cªº¿é¥X¨î
LMN_LLM = 100.0 /RATIOFAC
LMN: ±±¨î¾¹ªº±±¨î¿é¥X
INV: ¯ß½Äµo¥Í¾¹ªº¿é¤JÈ
RATIOFAC: ©Ò»Ýªº¼ö-§N©ñ¤j¤ñ²v¦]¤l¡C¥¦¬Oªº¥¿¼Æ¡C