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