¿´µ½ºÃ¶àÈ˶¼²»ÖªµÀMX Component ÎҾͺ†(ji¨£n)†ÎÕf(shu¨)Ò»ÏÂ
°²ÑbÁËß@‚€(g¨¨)Ü›¼þºó£¬Œ‘PLCºÍPCµÄͨÐųÌÐò¾Í׃µÃº†(ji¨£n)†ÎµÄºÜ¶àÁË¡£²»ÐèÒªMSCOMM,ß@‚€(g¨¨)¿Ø¼þÁË¡£
Ê×ÏÈ°²ÑbMX Component ß@‚€(g¨¨)Ü›¼þ£¬È»ºóVB h(hu¨¢n)¾³Ò²±Ø횣¨ÎÒÊDzËøB(ni¨£o)¾ÍÓÃVB .net,ÆäËûµÄVC,VBA,VBS¶¼¿ÉÒÔÓã©
È»ºóµÚÒ»²½£¬Ìí¼Óß@‚€(g¨¨)ÔÚVBh(hu¨¢n)¾³ÀïÌí¼Óß@‚€(g¨¨)¿Ø¼þ£¨¹¤¾ßÏä-->COM½M¼þ£©,ÎÒÓõÄÊÇFXϵÁоÍßx“ñ£¬MITSUBISHI ActFxCpu Controller
¢ÙÔÚform_load()ÀÈëactfxcpu.open()
¢Ú¶¨ÁxŽ×‚€(g¨¨)׃Á¿£¬
¢Û×xD0ÀïµÄƒÈ(n¨¨i)Èݽo׃Á¿A, actfxcpu.readdevicerandom("d0",A)
¢Ü×xD0~D10µÄƒÈ(n¨¨i)Èݽo”µ(sh¨´)½MB() , actfxcpu.readdeviceblock(("d0",10,b(0))
¢Ý½oY0ÖÃλµÄÔ’£¬¾Í actfxcpu.setdevice("y0",1)
µÈµÈ¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£
¿´µ½‰¯×ÓÀïÓкܶà¸ßÊÖ˜·(l¨¨)ÓÚÖúÈË£¬Ò²ŽÍÁËСµÜºÃ¶à´Î¡£
СµÜ²»Á߆ݣ¬¿´µ½ÓÐЩÈ˶¼²»ÖªµÀß@‚€(g¨¨)¡£°Ñ×Ô¼ºÖªµÀ½o´ó¼Ò·ÖÏíһϣ¬²»ÒªÒŠ(ji¨¤n)Ц£¬¶à¶àÖ¸½Ì£¬»¥ÏàŽÍÖú¡£
[ ´ËÌû±»543249117ÔÚ2012-12-05 19:22ÖØоŽÝ‹ ]