«~µP¡GAMAT | ³W®æ¡G0226-40265 | §÷½è¡G¥þ·s²{³f§é¤W§é |
²£¦a¡Gì¼t |
0226-40265 AMATª«¬ü»ù·G³t¨Ó
1¡D§ÚÌn±qPLC5ùرŪ«H®§¨ìLogix5550¤¤¡A º¥ý¦bController Tags¡]¥þ§½Åܶq¡^ùر«Ø¥ß¼Ðñ¦Wread¨Ã©w¸q¥¦ªºType(Ãþ«¬)¬°¡§MESSAGE¡¨¡C 2¡D¦bµ{§Çùر«Ø¥ßMSG«ü¥O¡A¨Ã±N¥¦ªº¦WºÙ©w¸q¬°read «á¡AÂI·¥read«á±ªº®Ø¡A¥´¶}¹ï¸Ü®Ø¦p¤U¡G ¿ïºØConfiguration(²ÕºA)¶µ¥i¥H¬Ý¨ì¡G Message Type¡G¥»¨Ò¬°PLC5Word Range read (·N«ä¬OŪ«H ®§ªº±±¨î¾¹¬OPLC5 Word Rangeread)¡F Source Element¡G¥»¨Ò¬°N7:0 (·N«ä¬OLogix5550Åܶqªº¦a §}¡A¨Ã¥B¬On³QPLC5Word Range readŪÅܶqªº²Ä¤@Ó¦a§}¡F Number of¡G¥»¨Ò¬°90 ¶Ç°eÅܶqªºÓ¼Æ¡F Destination¡G¥»¨Ò¬°ABB_CTR[0] (·N«ä¬OMSG«ü¥O±N Logix5550¤¤ªº¤@ÓN7:0Åܶqªº¦a§}¶Ç°e¨ìPLC5ªºABB_CTR[0]ªº²Ä¤@Ó ¤¤¥h¡A³Q PLC5Word Range readŪ¡A¨Ã¥B¶Ç°eªºÅܶq¦a§}³£¬O¤@¤@¹ïÀ³ªº¡C 10¡D°µµ{§Çªº®ÉÔ¡A³Q½Õ¥Î¹Lªºµ{§Ç¶ô¤£¯à¥Î°µ¡§¥D¨Òµ{¡¨¡C 11¡D·í»Ýn¡§±j¨î¡¨ ¬YÓÂI¦ìªº®ÉÔ¡A§Ú̺¥ý¹ï¸Óµ{§Ç¶i¦æ¡§¨Ï¯à¡¨¡C¨ãÅé¾Þ§@¶¶§Ç¦p¤U¡G 1¡BÂI·¥¥ª¤W¨¤ªºNo Forces¶µ¥Ø¡F 2¡B¨Ã¥´¶}I/O Forcing¶µ¥Ø¡F 3¡B¦bI/O Forcingªº«á±¿ï¾ÜEnable All I/O Forces(¨Ï¯à ¥þ³¡ªºI/O±j¨î)¡F 4¡BNo Forces¶µ¥Ø³B´N·|¡§Åܦ¨¶À¦â¡¨¡A²{¦b¥i¥HÂI·¥ §An±j¨îªºÂI¦ì¤WÂI·¥¥kÁä¡A±N·|¥X²{¤@Ó¹ï¸Ü®Ø¡C 5¡B±N¹«¼Ð²¾¨ìForce On ¡]±j¨î¶}¡^³q±`¥Î¨Ó±j¨î¬°°ª ¹q¥¬°¡§³q¡¨¡C 6¡B±N¹«¼Ð²¾¨ìForce Off ¡]±j¨îÃö¡^³q±`¥Î¨Ó±j¨î¬° §C¹q¥¬°¡§Â_¶}¡¨¡C 7¡B±N¹«¼Ð²¾¨ìRmove Force ¡]¨ú®ø±j¨î¡^·í¤£¦b±j¨î ¬YÓÂIªº®ÉÔ¡AÅÜ¥i¥H¨Ï¥ÎRmove Force ¨ú®ø±j¨î¡C 8¡B¨Ï¥ÎToggle Bit (IJµo¦ì)¥u¯àIJµo¬Y¤@ÓÂI¡A¨Ï¸ÓÂI Àþ¶¡¡§³q¡¨¡A¤£°_«O«ù§@¥Î¡A¦]¦¹¤£¯à¥Î©ó±j¨î¡C 12¡B·í§Ún¦bµ{§Ç¤W±¼g»¡©úªº®ÉÔ¡A§â¹«¼ÐÂI¦bn¼g»¡©ú¨º±øµ{§Çªº¥ªºÝ¡AÂI¹«¼Ð¥kÁä¿ï¾ÜEdit Rung commet(ctrl+dÁä¤]¥i¥H)¡A´N¥i¥H¦b¤W±¼g»¡©ú¤F¡A¼g§¹¤§«á¡AÂI·¥¥ª¤W¨¤ªº¤Ä¤Ä´N¥i¥H¤F¡C 13¡BLogix5550´£¨Ñ¤F32Ó¥ô°È¡A¨CÓ¥ô°È¥]§t¤F32Óµ{§Ç©M¥ô·N¼Æ¶qªº¨ç¼Æ©M¨Òµ{¡C¥ô°È¥i¥H³Q²Õ¦¨³sÄò©Êªº¡A©P´Á©Êªº©M°ò©ó¨Æ¥óªº¤T¤¤Ãþ«¬¡C 14¡B¦ì(bit)¡X¡X¤G¶i¨î¦ì¡A¤pªº¦sÀx³æ¤¸¡A±Ä¥Î¼Æ¦r0¡]²M°£¡^©M1¡]¸m¦ì¡^¨Óªí¥Ü¡C 15¡B¥¬º¸Åܶq(BOOL)¤@ºØ¥Î©ó«O¦s³æ¿W¤@¦ìªº°ò¥»¼Æ¾ÚÃþ«¬¡A³oùØ0ªí¥ÜÃö¡A1ªí¥Ü¶}¡C 16¡B¦r¸`(byte)¤@Ó8¦ìªº¦sÀx³æ¤¸¡C 17¡B³sÄò©Ê¥ô°È¡]Continous Task¡^¡G 1¡B¤@Ó¤uµ{¥i¥H¨S¦³³sÄò©Ê¥ô°È¡C
2¡B¦pªG¨Ï¥Î¥u¯à¦³¤@Ó³sÄò©Ê¥ô°È¡C 3¡B©Ò¦³©P´Á©Ê¥ô°È³£¯à¤¤Â_³sÄò©Ê¥ô°È¡C 18¡B¤¸¯À¡]element¡^¡G¤@Ó¥i¥H´M§}ªº¼Æ¾Ú³æ¤¸¡A¸Ó¼Æ¾Ú³æ¤¸¬O¤@Ó¤j«¬ªº¼Æ¾Ú³æ¤¸ªº¤l³æ¤¸¡A¼Æ²Õªº¤@ӳ椸¦¨¦ì¤¸¯À¡C 19¡B¦bAB-PLC¤¤¡A¤@Ӯج[¤¹³\¦w¸Ëªº¼Ò¶ôÁ`¼Æ¨ú¨M©ó¹q·½®e¶q¡C 20¡B·í¥Î¤á«O¦s¤uµ{®É¡A¦pªG¥¿³B©ó¦b½u½sµ{ª¬ºA¡A«h±N±q±±¨î¾¹¤W¸ü¨Ã¥B«O¦s¡A¦pªG¥Î¤á¤£·Qn±q±±¨î¾¹¤W¸üªº¼Æ¾Ú¡A«h¦b«O¦s¤uµ{¥H«eÀ³¶i¤JÂ÷½uª¬ºA¡C ¦pªG¥Î¤á±q±±¨î¾¹¤W¸ü¡A·sªº¤uµ{¤å¥ó¤¤±N¤£¥]§t¤U¦C¤º®e¡G 1¡B±è¯Åª`ÄÀ¡F 2¡B¦³Ãö¼Ðñ¡B¥ô°È¡Bµ{§Ç¡B¨Òµ{¡B¼Ò¶ô¡B©Î¥Î¤á©w¸qµ²ºcÅ骺»¡©ú¡F 3¡B§O¦WÃì¡]«ü¦V¥t¤@Ó§O¦Wªº§O¦W¡^¡C ¦pªG¥Î¤á±q±±¨î¾¹¤W¸ü¤@ÓÀ³¥Îµ{§Ç¡A¦Ó¸ÓÀ³¥Îµ{§Ç»P¤u§@¯¸¤¤¦s¦bªºµ{§Ç¦P¦W¡A«h¤W¸ü¹Lµ{±N¤£·|«¼g·í«eªºÀ³¥Îµ{§Ç¡A¤W¸ü¹Lµ{±N·í§@¤@Ó¡§upload as¡¨¹Lµ{¨Ó³B²z¡C¨Ó¦Û±±¨î¾¹ªºÅÞ¿èµ{§Ç©M¼Ðñ©w¸q±N«O¦s¦b¤@Ó©Mì¨ÓÀ³¥Îµ{§Ç¤£¦P¦Wªº¤å¥ó¤¤¡C³o¼Ë´N¥i¥H«O«ù·í«e¦sÀx¦b¤u§@¯¸ªºµw½LÅX°Ê¾¹¤¤ªº¥ô¦ó¤å¥ó¡A¨¾¤î«¼g¦s¦bªºÀ³¥Îµ{§Ç¡C 21¡B¹ï±a¶EÂ_I/O¼Ò¶ô©Î±a¦³«OÀIªº¿é¥X¼Ò¶ô¤£n¨Ï¥Î¾÷¬[³s±µ¡C±a¶EÂ_¼Ò¶ô©M±a«OÀI¼Ò¶ôªº¿é¥X¼Æ¾Ú¤£¯à³q¹L¾÷¬[³s±µ¶Ç°e¡C¦P®ÉÀ³°O¦í¡A¤@ÓLogix5550¦h¤¹³\250ÓÂù¦V³s±µ¡A¨C¤@Ó¿W¥ßªºI/O¼Ò¶ô¤¹³\16ÓÂù¦V³s±µ¡C¨Ò¦p¡G·í§ÚÌn§ïÅܤ@ÓMain Routine(¥D¨Òµ{)ªº®ÉÔ¡C 1¡D±N¹«¼Ð©ì¨ìMainProgram ¡]¥Dµ{§Ç¡^¤W¡AÂI·¥¥kÁä±N¥X¨Ó«Ü¦h¿ï¶µ¡A¿ï¤¤Properties¡]ÄÝ©Ê¡^ÂI¥ªÁä¡A±N¥´¶}¤@Ó¹ï¸Ü®Ø¡C¥i¥H¬Ý¨ì¦p¤U¡GGeneral(±`³W)©MConfiguration(²ÕºA) 2¡D¿ïºØConfiguration(²ÕºA)¶µ¥i¥H¬Ý¨ì¡G Assigned Routines (¤À°t¨Òµ{) Main Routine (¥D¨Òµ{) ¡§¦b¦¹¿ïºØ§A©Ò¶·n³]¸m¬°¥D¨Òµ{ªº¨ºÓ¦WºÙ¡¨ 3¡DÂI·¥½T»{¡AÀH«á´N·|¦bMainProgram ¡]¥Dµ{§Ç¡^¤U±¬Ý¨ì±a¦³1ªº¼Ð§Ó¬°¥D¨Òµ{¡C 6¡D½uªº®ÉÔ¦p¦ó¿ï¾Ü³q°T¸ô®|¡G §Ú̱ĥΥH¤U¹Lµ{¶i¦æ³]¸m¡G 1¡DGo Online(¦b½u)ªº®ÉԬݧA©ÒnGo Online(¦b½u)ªº¨ºÓ±±¨î¾¹¡A§A´N±N±N¹«¼Ð©ì¨ìµe±ªº¡§Path¡G¡¨ªº¥kºÝ¡AÂI·¥¤T¨¤§Î²Å¸¹´N¥i¥H¥´¶}©Òn¿ï¾Ü³q°T¸ô®|ªº¹ï¸Ü®Ø¡C 2¡D¦b¹ï¸Ü¤¤¡A´N¥i¥H¿ï¾Ü§An³X°Ý±±¨î¾¹ªº¸ô®|¡A¨Ò¦p¡G¿ï¾ÜAB_ETH-1\130.130.130.2\Backplane\0¤§«á¡AÂI·¥Set Project Path(³]©wp¹º¸ô®|)´N¥i¥H¬Ý¨ì©Òn³X°Ý±±¨î¾¹ªº³q°T¸ô®|¡C¦pªG·Q¨ú®ø¸Ó¸ô®|´NÂI·¥lear Project Path¡]¨ú®øp¹º¸ô®|¡^¡C 3¡D¸ô®|ªº»¡©ú¡GAB_ETH-1¬OEthernetºôµ¸¡]¥H¤Óºô¡^¡F 130.130.130.2¬Oºôµ¸ªºIP¦a§}¡F Backplane¬OIªO¡]©³ª©¡^¡F 0*¬O0¸¹¼Ñ¡C 7¡D¦b¤£°_½uªº®ÉÔ¡A¬d¬Ýµ{§Ç¬O§_¬Û¦P¡A¦pªG¤£¬Û¦P®É¡Aµe±·|´£¥Ü§A¬O¡§¤W¸Ë¡¨ÁÙ¬O¡§¤U¸ü¡¨µ{§Ç¡C³oÓ®ÉÔ¥inª`·N¡A¤£n»´©ö¡§¤W¸Ë¡¨©M¡§¤U¸ü¡¨¡C¥J²Ó¾\Ū^¤å´£¥Ü¡A¬Ý¦Û¤vn°µ¤°»ò¡A¤~ÂI·¥½T»{¡C 8¡DAB-PLC¼Ò¶ôªº´¡ªk¡GABªº¼Ò¶ô¥i¥H¥ô·Nªº´¡¦b¾÷¬[¤Wªº¬YӼѡA¦ý¬O¦b³]¸m¼Ò¶ôªºSlot(¼Ñ¸¹)®É¡A³]¸mªºSlot(¼Ñ¸¹)n©M¾÷¬[¤Wªº¼Ñ¸¹¤@P¡C 9¡D¦p¦ó±Ä¥ÎMSG«ü¥O¶i¦æ¼Æ¾Úªº¶Ç¿é¡G ¨Ò¦p¡G1¡D§ÚÌn±qPLC5ùر¼g«H®§¨ìLogix5550¤¤¡Aº¥ý¦b Controller Tags¡]¥þ§½Åܶq¡^ùر«Ø¥ß¼Ðñ¦WWrite¨Ã©w¸q¥¦ªºType(Ãþ«¬)¬°¡§MESSAGE¡¨¡C 2¡D¦bµ{§Çùر«Ø¥ßMSG«ü¥O¡A¨Ã±N¥¦ªº¦WºÙ©w¸q¬°Write «á¡AÂI·¥Write«á±ªº®Ø¡A¥´¶}¹ï¸Ü®Ø¦p¤U¡G ¿ïºØConfiguration(²ÕºA)¶µ¥i¥H¬Ý¨ì¡G Message Type¡G¥»¨Ò¬°PLC5Word Range Write (·N«ä¬O¼g«H ®§ªº±±¨î¾¹¬OPLC5 Word Range Write)¡F Source Element¡G¥»¨Ò¬°ABB_CTR[0] (·N«ä¬O¶Ç°eÅܶqªº ¦a§}¡A¨Ã¥B¬On¶Ç°eÅܶqªº²Ä¤@Ó¦a§}¡F Number of¡G¥»¨Ò¬°90 ¶Ç°eÅܶqªºÓ¼Æ¡F Destination¡G¥»¨Ò¬°N10:0 (·N«ä¬OMSG«ü¥O±NPLC5ªº
ABB_CTR[0]Åܶqªº²Ä¤@Ó©ñ¨ì¤FLogix5550¤¤ªº¤@ÓN10:0¤¤¥h¡C«á±ªº¤@¤@¹ïÀ³¡C ¨Ò¦p¡G1¡D§ÚÌn±qPLC5ùرŪ«H®§¨ìLogix5550¤¤¡A º¥ý¦bController Tags¡]¥þ§½Åܶq¡^ùر«Ø¥ß¼Ðñ¦Wread¨Ã©w¸q¥¦ªºType(Ãþ«¬)¬°¡§MESSAGE¡¨¡C 2¡D¦bµ{§Çùر«Ø¥ßMSG«ü¥O¡A¨Ã±N¥¦ªº¦WºÙ©w¸q¬°read «á¡AÂI·¥read«á±ªº®Ø¡A¥´¶}¹ï¸Ü®Ø¦p¤U¡G ¿ïºØConfiguration(²ÕºA)¶µ¥i¥H¬Ý¨ì¡G Message Type¡G¥»¨Ò¬°PLC5Word Range read (·N«ä¬OŪ«H ®§ªº±±¨î¾¹¬OPLC5 Word Rangeread)¡F Source Element¡G¥»¨Ò¬°N7:0 (·N«ä¬OLogix5550Åܶqªº¦a §}¡A¨Ã¥B¬On³QPLC5Word Range readŪÅܶqªº²Ä¤@Ó¦a§}¡F Number of¡G¥»¨Ò¬°90 ¶Ç°eÅܶqªºÓ¼Æ¡F Destination¡G¥»¨Ò¬°ABB_CTR[0] (·N«ä¬OMSG«ü¥O±N Logix5550¤¤ªº¤@ÓN7:0Åܶqªº¦a§}¶Ç°e¨ìPLC5ªºABB_CTR[0]ªº²Ä¤@Ó ¤¤¥h¡A³Q PLC5Word Range readŪ¡A¨Ã¥B¶Ç°eªºÅܶq¦a§}³£¬O¤@¤@¹ïÀ³ªº¡C 10¡D°µµ{§Çªº®ÉÔ¡A³Q½Õ¥Î¹Lªºµ{§Ç¶ô¤£¯à¥Î°µ¡§¥D¨Òµ{¡¨¡C 11¡D·í»Ýn¡§±j¨î¡¨ ¬YÓÂI¦ìªº®ÉÔ¡A§Ú̺¥ý¹ï¸Óµ{§Ç¶i¦æ¡§¨Ï¯à¡¨¡C¨ãÅé¾Þ§@¶¶§Ç¦p¤U¡G 1¡BÂI·¥¥ª¤W¨¤ªºNo Forces¶µ¥Ø¡F 2¡B¨Ã¥´¶}I/O Forcing¶µ¥Ø¡F 3¡B¦bI/O Forcingªº«á±¿ï¾ÜEnable All I/O Forces(¨Ï¯à ¥þ³¡ªºI/O±j¨î)¡F 4¡BNo Forces¶µ¥Ø³B´N·|¡§Åܦ¨¶À¦â¡¨¡A²{¦b¥i¥HÂI·¥ §An±j¨îªºÂI¦ì¤WÂI·¥¥kÁä¡A±N·|¥X²{¤@Ó¹ï¸Ü®Ø¡C 5¡B±N¹«¼Ð²¾¨ìForce On ¡]±j¨î¶}¡^³q±`¥Î¨Ó±j¨î¬°°ª ¹q¥¬°¡§³q¡¨¡C 6¡B±N¹«¼Ð²¾¨ìForce Off ¡]±j¨îÃö¡^³q±`¥Î¨Ó±j¨î¬° §C¹q¥¬°¡§Â_¶}¡¨¡C 7¡B±N¹«¼Ð²¾¨ìRmove Force ¡]¨ú®ø±j¨î¡^·í¤£¦b±j¨î ¬YÓÂIªº®ÉÔ¡AÅÜ¥i¥H¨Ï¥ÎRmove Force ¨ú®ø±j¨î¡C 8¡B¨Ï¥ÎToggle Bit (IJµo¦ì)¥u¯àIJµo¬Y¤@ÓÂI¡A¨Ï¸ÓÂI Àþ¶¡¡§³q¡¨¡A¤£°_«O«ù§@¥Î¡A¦]¦¹¤£¯à¥Î©ó±j¨î¡C 12¡B·í§Ún¦bµ{§Ç¤W±¼g»¡©úªº®ÉÔ¡A§â¹«¼ÐÂI¦bn¼g»¡©ú¨º±øµ{§Çªº¥ªºÝ¡AÂI¹«¼Ð¥kÁä¿ï¾ÜEdit Rung commet(ctrl+dÁä¤]¥i¥H)¡A´N¥i¥H¦b¤W±¼g»¡©ú¤F¡A¼g§¹¤§«á¡AÂI·¥¥ª¤W¨¤ªº¤Ä¤Ä´N¥i¥H¤F¡C 13¡BLogix5550´£¨Ñ¤F32Ó¥ô°È¡A¨CÓ¥ô°È¥]§t¤F32Óµ{§Ç©M¥ô·N¼Æ¶qªº¨ç¼Æ©M¨Òµ{¡C¥ô°È¥i¥H³Q²Õ¦¨³sÄò©Êªº¡A©P´Á©Êªº©M°ò©ó¨Æ¥óªº¤T¤¤Ãþ«¬¡C 14¡B¦ì(bit)¡X¡X¤G¶i¨î¦ì¡A¤pªº¦sÀx³æ¤¸¡A±Ä¥Î¼Æ¦r0¡]²M°£¡^©M1¡]¸m¦ì¡^¨Óªí¥Ü¡C 15¡B¥¬º¸Åܶq(BOOL)¤@ºØ¥Î©ó«O¦s³æ¿W¤@¦ìªº°ò¥»¼Æ¾ÚÃþ«¬¡A³oùØ0ªí¥ÜÃö¡A1ªí¥Ü¶}¡C 16¡B¦r¸`(byte)¤@Ó8¦ìªº¦sÀx³æ¤¸¡C 17¡B³sÄò©Ê¥ô°È¡]Continous Task¡^¡G 1¡B¤@Ó¤uµ{¥i¥H¨S¦³³sÄò©Ê¥ô°È¡C
2¡B¦pªG¨Ï¥Î¥u¯à¦³¤@Ó³sÄò©Ê¥ô°È¡C 3¡B©Ò¦³©P´Á©Ê¥ô°È³£¯à¤¤Â_³sÄò©Ê¥ô°È¡C 18¡B¤¸¯À¡]element¡^¡G¤@Ó¥i¥H´M§}ªº¼Æ¾Ú³æ¤¸¡A¸Ó¼Æ¾Ú³æ¤¸¬O¤@Ó¤j«¬ªº¼Æ¾Ú³æ¤¸ªº¤l³æ¤¸¡A¼Æ²Õªº¤@ӳ椸¦¨¦ì¤¸¯À¡C 19¡B¦bAB-PLC¤¤¡A¤@Ӯج[¤¹³\¦w¸Ëªº¼Ò¶ôÁ`¼Æ¨ú¨M©ó¹q·½®e¶q¡C 20¡B·í¥Î¤á«O¦s¤uµ{®É¡A¦pªG¥¿³B©ó¦b½u½sµ{ª¬ºA¡A«h±N±q±±¨î¾¹¤W¸ü¨Ã¥B«O¦s¡A¦pªG¥Î¤á¤£·Qn±q±±¨î¾¹¤W¸üªº¼Æ¾Ú¡A«h¦b«O¦s¤uµ{¥H«eÀ³¶i¤JÂ÷½uª¬ºA¡C ¦pªG¥Î¤á±q±±¨î¾¹¤W¸ü¡A·sªº¤uµ{¤å¥ó¤¤±N¤£¥]§t¤U¦C¤º®e¡G 1¡B±è¯Åª`ÄÀ¡F 2¡B¦³Ãö¼Ðñ¡B¥ô°È¡Bµ{§Ç¡B¨Òµ{¡B¼Ò¶ô¡B©Î¥Î¤á©w¸qµ²ºcÅ骺»¡©ú¡F 3¡B§O¦WÃì¡]«ü¦V¥t¤@Ó§O¦Wªº§O¦W¡^¡C ¦pªG¥Î¤á±q±±¨î¾¹¤W¸ü¤@ÓÀ³¥Îµ{§Ç¡A¦Ó¸ÓÀ³¥Îµ{§Ç»P¤u§@¯¸¤¤¦s¦bªºµ{§Ç¦P¦W¡A«h¤W¸ü¹Lµ{±N¤£·|«¼g·í«eªºÀ³¥Îµ{§Ç¡A¤W¸ü¹Lµ{±N·í§@¤@Ó¡§upload as¡¨¹Lµ{¨Ó³B²z¡C¨Ó¦Û±±¨î¾¹ªºÅÞ¿èµ{§Ç©M¼Ðñ©w¸q±N«O¦s¦b¤@Ó©Mì¨ÓÀ³¥Îµ{§Ç¤£¦P¦Wªº¤å¥ó¤¤¡C³o¼Ë´N¥i¥H«O«ù·í«e¦sÀx¦b¤u§@¯¸ªºµw½LÅX°Ê¾¹¤¤ªº¥ô¦ó¤å¥ó¡A¨¾¤î«¼g¦s¦bªºÀ³¥Îµ{§Ç¡C 21¡B¹ï±a¶EÂ_I/O¼Ò¶ô©Î±a¦³«OÀIªº¿é¥X¼Ò¶ô¤£n¨Ï¥Î¾÷¬[³s±µ¡C±a¶EÂ_¼Ò¶ô©M±a«OÀI¼Ò¶ôªº¿é¥X¼Æ¾Ú¤£¯à³q¹L¾÷¬[³s±µ¶Ç°e¡C¦P®ÉÀ³°O¦í¡A¤@ÓLogix5550¦h¤¹³\250ÓÂù¦V³s±µ¡A¨C¤@Ó¿W¥ßªºI/O¼Ò¶ô¤¹³\16ÓÂù¦V³s±µ¡C
¨Ò¦p¡G·í§ÚÌn§ïÅܤ@ÓMain Routine(¥D¨Òµ{)ªº®ÉÔ¡C 1¡D±N¹«¼Ð©ì¨ìMainProgram ¡]¥Dµ{§Ç¡^¤W¡AÂI·¥¥kÁä±N¥X¨Ó«Ü¦h¿ï¶µ¡A¿ï¤¤Properties¡]ÄÝ©Ê¡^ÂI¥ªÁä¡A±N¥´¶}¤@Ó¹ï¸Ü®Ø¡C¥i¥H¬Ý¨ì¦p¤U¡GGeneral(±`³W)©MConfiguration(²ÕºA) 2¡D¿ïºØConfiguration(²ÕºA)¶µ¥i¥H¬Ý¨ì¡G Assigned Routines (¤À°t¨Òµ{) Main Routine (¥D¨Òµ{) ¡§¦b¦¹¿ïºØ§A©Ò¶·n³]¸m¬°¥D¨Òµ{ªº¨ºÓ¦WºÙ¡¨ 3¡DÂI·¥½T»{¡AÀH«á´N·|¦bMainProgram ¡]¥Dµ{§Ç¡^¤U±¬Ý¨ì±a¦³1ªº¼Ð§Ó¬°¥D¨Òµ{¡C 6¡D½uªº®ÉÔ¦p¦ó¿ï¾Ü³q°T¸ô®|¡G §Ú̱ĥΥH¤U¹Lµ{¶i¦æ³]¸m¡G 1¡DGo Online(¦b½u)ªº®ÉԬݧA©ÒnGo Online(¦b½u)ªº¨ºÓ±±¨î¾¹¡A§A´N±N±N¹«¼Ð©ì¨ìµe±ªº¡§Path¡G¡¨ªº¥kºÝ¡AÂI·¥¤T¨¤§Î²Å¸¹´N¥i¥H¥´¶}©Òn¿ï¾Ü³q°T¸ô®|ªº¹ï¸Ü®Ø¡C 2¡D¦b¹ï¸Ü¤¤¡A´N¥i¥H¿ï¾Ü§An³X°Ý±±¨î¾¹ªº¸ô®|¡A¨Ò¦p¡G¿ï¾ÜAB_ETH-1\130.130.130.2\Backplane\0¤§«á¡AÂI·¥Set Project Path(³]©wp¹º¸ô®|)´N¥i¥H¬Ý¨ì©Òn³X°Ý±±¨î¾¹ªº³q°T¸ô®|¡C¦pªG·Q¨ú®ø¸Ó¸ô®|´NÂI·¥lear Project Path¡]¨ú®øp¹º¸ô®|¡^¡C 3¡D¸ô®|ªº»¡©ú¡GAB_ETH-1¬OEthernetºôµ¸¡]¥H¤Óºô¡^¡F 130.130.130.2¬Oºôµ¸ªºIP¦a§}¡F Backplane¬OIªO¡]©³ª©¡^¡F 0*¬O0¸¹¼Ñ¡C 7¡D¦b¤£°_½uªº®ÉÔ¡A¬d¬Ýµ{§Ç¬O§_¬Û¦P¡A¦pªG¤£¬Û¦P®É¡Aµe±·|´£¥Ü§A¬O¡§¤W¸Ë¡¨ÁÙ¬O¡§¤U¸ü¡¨µ{§Ç¡C³oÓ®ÉÔ¥inª`·N¡A¤£n»´©ö¡§¤W¸Ë¡¨©M¡§¤U¸ü¡¨¡C¥J²Ó¾\Ū^¤å´£¥Ü¡A¬Ý¦Û¤vn°µ¤°»ò¡A¤~ÂI·¥½T»{¡C 8¡DAB-PLC¼Ò¶ôªº´¡ªk¡GABªº¼Ò¶ô¥i¥H¥ô·Nªº´¡¦b¾÷¬[¤Wªº¬YӼѡA¦ý¬O¦b³]¸m¼Ò¶ôªºSlot(¼Ñ¸¹)®É¡A³]¸mªºSlot(¼Ñ¸¹)n©M¾÷¬[¤Wªº¼Ñ¸¹¤@P¡C 9¡D¦p¦ó±Ä¥ÎMSG«ü¥O¶i¦æ¼Æ¾Úªº¶Ç¿é¡G ¨Ò¦p¡G1¡D§ÚÌn±qPLC5ùر¼g«H®§¨ìLogix5550¤¤¡Aº¥ý¦b Controller Tags¡]¥þ§½Åܶq¡^ùر«Ø¥ß¼Ðñ¦WWrite¨Ã©w¸q¥¦ªºType(Ãþ«¬)¬°¡§MESSAGE¡¨¡C 2¡D¦bµ{§Çùر«Ø¥ßMSG«ü¥O¡A¨Ã±N¥¦ªº¦WºÙ©w¸q¬°Write «á¡AÂI·¥Write«á±ªº®Ø¡A¥´¶}¹ï¸Ü®Ø¦p¤U¡G ¿ïºØConfiguration(²ÕºA)¶µ¥i¥H¬Ý¨ì¡G Message Type¡G¥»¨Ò¬°PLC5Word Range Write (·N«ä¬O¼g«H ®§ªº±±¨î¾¹¬OPLC5 Word Range Write)¡F Source Element¡G¥»¨Ò¬°ABB_CTR[0] (·N«ä¬O¶Ç°eÅܶqªº ¦a§}¡A¨Ã¥B¬On¶Ç°eÅܶqªº²Ä¤@Ó¦a§}¡F Number of¡G¥»¨Ò¬°90 ¶Ç°eÅܶqªºÓ¼Æ¡F Destination¡G¥»¨Ò¬°N10:0 (·N«ä¬OMSG«ü¥O±NPLC5ªº
ABB_CTR[0]Åܶqªº²Ä¤@Ó©ñ¨ì¤FLogix5550¤¤ªº¤@ÓN10:0¤¤¥h¡C«á±ªº¤@¤@¹ïÀ³¡C ¨Ò¦p¡G1¡D§ÚÌn±qPLC5ùرŪ«H®§¨ìLogix5550¤¤¡A º¥ý¦bController Tags¡]¥þ§½Åܶq¡^ùر«Ø¥ß¼Ðñ¦Wread¨Ã©w¸q¥¦ªºType(Ãþ«¬)¬°¡§MESSAGE¡¨¡C 2¡D¦bµ{§Çùر«Ø¥ßMSG«ü¥O¡A¨Ã±N¥¦ªº¦WºÙ©w¸q¬°read «á¡AÂI·¥read«á±ªº®Ø¡A¥´¶}¹ï¸Ü®Ø¦p¤U¡G ¿ïºØConfiguration(²ÕºA)¶µ¥i¥H¬Ý¨ì¡G Message Type¡G¥»¨Ò¬°PLC5Word Range read (·N«ä¬OŪ«H ®§ªº±±¨î¾¹¬OPLC5 Word Rangeread)¡F Source Element¡G¥»¨Ò¬°N7:0 (·N«ä¬OLogix5550Åܶqªº¦a §}¡A¨Ã¥B¬On³QPLC5Word Range readŪÅܶqªº²Ä¤@Ó¦a§}¡F Number of¡G¥»¨Ò¬°90 ¶Ç°eÅܶqªºÓ¼Æ¡F Destination¡G¥»¨Ò¬°ABB_CTR[0] (·N«ä¬OMSG«ü¥O±N Logix5550¤¤ªº¤@ÓN7:0Åܶqªº¦a§}¶Ç°e¨ìPLC5ªºABB_CTR[0]ªº²Ä¤@Ó ¤¤¥h¡A³Q PLC5Word Range readŪ¡A¨Ã¥B¶Ç°eªºÅܶq¦a§}³£¬O¤@¤@¹ïÀ³ªº¡C 10¡D°µµ{§Çªº®ÉÔ¡A³Q½Õ¥Î¹Lªºµ{§Ç¶ô¤£¯à¥Î°µ¡§¥D¨Òµ{¡¨¡C 11¡D·í»Ýn¡§±j¨î¡¨ ¬YÓÂI¦ìªº®ÉÔ¡A§Ú̺¥ý¹ï¸Óµ{§Ç¶i¦æ¡§¨Ï¯à¡¨¡C¨ãÅé¾Þ§@¶¶§Ç¦p¤U¡G 1¡BÂI·¥¥ª¤W¨¤ªºNo Forces¶µ¥Ø¡F 2¡B¨Ã¥´¶}I/O Forcing¶µ¥Ø¡F 3¡B¦bI/O Forcingªº«á±¿ï¾ÜEnable All I/O Forces(¨Ï¯à ¥þ³¡ªºI/O±j¨î)¡F 4¡BNo Forces¶µ¥Ø³B´N·|¡§Åܦ¨¶À¦â¡¨¡A²{¦b¥i¥HÂI·¥ §An±j¨îªºÂI¦ì¤WÂI·¥¥kÁä¡A±N·|¥X²{¤@Ó¹ï¸Ü®Ø¡C 5¡B±N¹«¼Ð²¾¨ìForce On ¡]±j¨î¶}¡^³q±`¥Î¨Ó±j¨î¬°°ª ¹q¥¬°¡§³q¡¨¡C 6¡B±N¹«¼Ð²¾¨ìForce Off ¡]±j¨îÃö¡^³q±`¥Î¨Ó±j¨î¬° §C¹q¥¬°¡§Â_¶}¡¨¡C 7¡B±N¹«¼Ð²¾¨ìRmove Force ¡]¨ú®ø±j¨î¡^·í¤£¦b±j¨î ¬YÓÂIªº®ÉÔ¡AÅÜ¥i¥H¨Ï¥ÎRmove Force ¨ú®ø±j¨î¡C 8¡B¨Ï¥ÎToggle Bit (IJµo¦ì)¥u¯àIJµo¬Y¤@ÓÂI¡A¨Ï¸ÓÂI Àþ¶¡¡§³q¡¨¡A¤£°_«O«ù§@¥Î¡A¦]¦¹¤£¯à¥Î©ó±j¨î¡C 12¡B·í§Ún¦bµ{§Ç¤W±¼g»¡©úªº®ÉÔ¡A§â¹«¼ÐÂI¦bn¼g»¡©ú¨º±øµ{§Çªº¥ªºÝ¡AÂI¹«¼Ð¥kÁä¿ï¾ÜEdit Rung commet(ctrl+dÁä¤]¥i¥H)¡A´N¥i¥H¦b¤W±¼g»¡©ú¤F¡A¼g§¹¤§«á¡AÂI·¥¥ª¤W¨¤ªº¤Ä¤Ä´N¥i¥H¤F¡C 13¡BLogix5550´£¨Ñ¤F32Ó¥ô°È¡A¨CÓ¥ô°È¥]§t¤F32Óµ{§Ç©M¥ô·N¼Æ¶qªº¨ç¼Æ©M¨Òµ{¡C¥ô°È¥i¥H³Q²Õ¦¨³sÄò©Êªº¡A©P´Á©Êªº©M°ò©ó¨Æ¥óªº¤T¤¤Ãþ«¬¡C 14¡B¦ì(bit)¡X¡X¤G¶i¨î¦ì¡A¤pªº¦sÀx³æ¤¸¡A±Ä¥Î¼Æ¦r0¡]²M°£¡^©M1¡]¸m¦ì¡^¨Óªí¥Ü¡C 15¡B¥¬º¸Åܶq(BOOL)¤@ºØ¥Î©ó«O¦s³æ¿W¤@¦ìªº°ò¥»¼Æ¾ÚÃþ«¬¡A³oùØ0ªí¥ÜÃö¡A1ªí¥Ü¶}¡C 16¡B¦r¸`(byte)¤@Ó8¦ìªº¦sÀx³æ¤¸¡C 17¡B³sÄò©Ê¥ô°È¡]Continous Task¡^¡G 1¡B¤@Ó¤uµ{¥i¥H¨S¦³³sÄò©Ê¥ô°È¡C
¡¹·Hªù¿³¾U¹F¦Û°Ê¤Æ³]³Æ¦³¤½¥q
¡¹Áp«Y¤H¡G¼BÀA¬Â ¡¹ Q Q ¡G2679731576 ¡¹
¡¹¹q¸Ü¡G0592-5361112 ¡¹ 400-855-5103Âà003 ¡¹ ¤â¾÷¡G15359273791 ¡¹
¡¹¶Ç¯u¡G0592-5581710¡]ª`¼BÀA¬Â¦¬¡^ ¡¹
¡¹¶l½c¡G2679731576@qq.com ¡¹
http://www.xrdzidonghua.com
¡¹¦a§}¡F·Hªù¥«¤½tÆW¹B°ÊÀ]Àç¹B¤¤¤ß¤@¸¹¼Ó¤G¼hEFQPQ³æ¤¸
¤U±¬O§Ú¤½¥qªºÀu¶Õ²£«~(¤é±`¥Îªº¦hªº,ÁÙ¦³¤£±`¥Îªº¥¼¦C¥X¡A¦ý³£¦³°µªº)Åwªï±zªº«t¸ß¡I
¬I@¼w140«Y¦C¡BAS«Y¦C¡AHoneywell 620«Y¦C¡A
AB RELIANCE ELECTRIC«Y¦C
AB1785¡B1756¡B1747¡B1784¡B2094¡B2098¡B1394C¡B1336F/1745µ¥«Y¦C
ABB¾÷¾¹¤H DSQC«Y¦C¡AºÖ§J´µªiùFBM¡A
TRICONEX«Y¦C 3503E 3805E 3604Eµ¥¡Amotorola¡AXYCOM²£«~
¦èªù¤l6DD 6SC 6SN 6FC 6GK 6FX S5«Y¦C µ¥
Siemens TI 5«Y¦C¶}ÀY
Siemens Moore APACS
GE IC647/693/697/698«Y¦C
§C»ù·¼É¡A¥ý¨ì¥ý±o¡I,¥H¤W²£«~§Ú¥q»ù®æÅý±zº¡·N¡A¾÷·|¤£®e¡A§Ö¨Ó§a¡I¡I¡I
A-B 1746-IB32/C 5
A-B 1746-IA16/C 11
A-B 1746-OW16 6
A-B 1746-N2 3
A-B 1746-P2 1
A-B 1747-M11/B 1
A-B 1746-IA16 2
A-B 1747-L551 1
A-B 1746-PA 1
A-B 1746-A13 1
A-B 1746-A10 1
ABB TU804-1 q³f¸¹ 3BSE020522R1 ¼Æ¶q1
ABB 3BHB0003689 ¼Æ¶q1
ABB PHARPS32200000 ¼Æ¶q1
KEPCO 4882-27 1
A-B 1747-L552/A 3
A-B 1756-L55M16/A 2
ICS TRIPLEX 8431 1
CUTLER 1775TPMPS1700 1
ABB 3BSC980008R87 1
A-B 1746-NI8 1
A-B 1746-OW16 10
ESTIC ENRZ-TU013-S 1
Elau MC-4/11/03/400 1
Free SYS68KCPU-30BE/16C8 1
KUKA KPS-600/20-ESC 3
MODICON 140DDO35300 3
FOXBOROFBM207BªººÝ¤lPO916JS3
FOXBOROFBM241ªººÝ¤lP0916AW3
FOXBOROFBM201ªººÝ¤lP0916AA5
FOXBOROFBM203ªººÝ¤lP0916AE5
FOXBOROFBM204ªººÝ¤lP0916AG10
FOXBOROFBM202ªººÝ¤lP0916AC4
A-B 1756-L55M14 2
GE IC697ALG320 5
1C31194G01 4Ó
1C31197G01 4Ó
1C31203G01 1Ó
1C31204G01 1Ó
1C31122G01 1Ó
1C31125G02 1Ó
1C31224G01 1Ó
1C31227G01 1Ó
1C31166G01 1Ó
1C31129G03 1Ó
1C31132G01 1Ó
1C31147G01 4Ó
1C31150G01 4Ó
1C31189G01 1Ó
1C31192G01 1Ó
1C31227G02 1Ó
1C31189G01 1Ó «~µP¡GWestinghouse
A-B 1756-L55M14 3
Siemens 6SC6100-0GA12 1
Siemens 6EV3055-ODC 1
WESTINGHOUSE 5X00105G14 1
ROCKWELL ICS TRIPLEX T8431 1
ROCKWELL ICS TRIPLEX T8403 1
ROCKWELL ICS TRIPLEX T8310 3
ROCKWELL ICS TRIPLEX T8461 1
SIEMENS 6DD1600-0AK0 2
SIEMENS 6DD1600-0AH0 2
ABB «¬¸¹CI854A q³f¸¹3BSE030221R1 1 ³Æ³f
A-B MVI56-MCM 1
A-B 1746-NR4/B 4
Nor-Cal Esvp-1502-NWB-5 2
A-B 1756-PA75/A 1
CENTRECOM 200 SERIES MAU 1
GE IC697ALG320 10
Motorola cPCI-6020TMq³f¸¹01-W3943F 01B 1
ABB IMHSS03 1
FOXBORO P0926GW /FBM232 2
ICS TRIPLEX T8431 1
RELIANCE 57C431 2
WOODWARD 9907-028/D 1
ABB DSQC 658 3HAC025779-001 1
A-B 1756-IF16-A 7
A-B 1770-KFD/A 1
A-B 1747-L552/A 1
A-B 1747-L552/B 3
1ECO *A
2EA1 *A
3ER5 *B
4EAO *A
5BARD -400*A I3AG5
6BARD -300*A I3AG5 II
7JUXTA FH1A-OA*B/Z
8PS35*A S9252AL-0
9NP54*C S9542AS-0
10NP53*C S9541AS-0
11ST4*D S9611-AJ-0
12ST3*D S9611-AJ-0
13MAC2*C
14RS2*C S940
15VM1*D
16VM2*D
17MODEL CP345 S1
18MODEL FC311 S1
19MODEL AIP562
20MODEL STYLE S4
21DIS ENA AS S949
²{³f
§Ç¸¹«~µP³W®æ«¬¸¹¼Æ¶q
1¦èªù¤l¼¯º¸CCM+4MQLCCM24AAN16418-41/13
2¦èªù¤l¼¯º¸CCM+2MQLCCM22AAN 16418-31/18
3¦èªù¤l¼¯º¸CDMQLCDM024DCBAN 16809-41/327
4¦èªù¤l¼¯º¸CDMQLCDM024DCBAN16809-41/126
5¦èªù¤l¼¯º¸CDMQLCDM024DCBAN 16809-41/24
6¦èªù¤l¼¯º¸VIMQLVIMBCN 16171-123/914
8¦èªù¤l¼¯º¸VIMQLVIMBCN16171-123R/91
9¦èªù¤l¼¯º¸CAMQLCAMAAN16404-1/13
10¦èªù¤l¼¯º¸ACM 39ACM24BDN 16139-205/1 4
11¦èªù¤l¼¯º¸VIM 39VIMCBN16171-121/045
12¦èªù¤l¼¯º¸VIM 39VIMCBN16171-121/032
13¦èªù¤l¼¯º¸SAM 39SAMCAN 16133-71/1R1
14¦èªù¤l¼¯º¸SAM 39SAMCAN16133-71/021
15¦èªù¤l¼¯º¸SAM 39SAMCAN16133-71/033
17¦èªù¤l¼¯º¸EAM39EAMCAN16154-101/014
18¦èªù¤l¼¯º¸EAM39EAMNAN16154-1/041
19¦èªù¤l¼¯º¸EAM39EAMCBN16154-93/11
20¦èªù¤l¼¯º¸³s½u54
21¦èªù¤l¼¯º¸¾÷¬[11
GE IC670MDL640J 6
GE IC670ALG240-JC 2
GE IC670MDL740J 7
GE IC670GB1002G 20
GE IC670ALG620-JD 1
GE IC670ALG330-JB 7
FOXBORO P0922YU 1
¥»¯S§Q 3300/20 8
3300/10. 1
3300/03. 2
3300/36 4
3300/16 4
3300/14 2
3300/01. 1
®ý¤j¤¤±±¥d¥ó
SP316 92
SP322 48
SP233 30
SP314 49
SP313 60
SP363 9
SP221 26
SP000 3
¾÷¬[ 17
REXROTH 0608720040 1
REXROTH 0608820103 1
AMAT BCG450-SD 1
ABB NAIO-03 1
KUKA MFC2 (00-108-766) 1
KUKA DSEIBS-C33(00-117-336) 1
A-B 1756-IF6I/A 5
A-B 1746-NI8/A 2
A-B 2711-T10G8/B 1
A-B 1336-MOD-KB010 3