进口电议^^ 82927-01的简单介绍82927-01进口电议^^ 82927-01的详细信息【厦门莫格电气自动化有限公司】【本公司拥有所有产品专业检测平台,产品质量严格把关】 【具体询价咨询-祖小姐】 【电话:18050036946(微信同号)】 【QQ:1811245942】 【采购单比同行低10个点您拿单子,追求共赢!】 根据PC与FX系列PLC的传输应答过程,利用VB的MSComm控件可以编写如下通信程序实现PC与FX系列PLC之间的串行通信,以完成数据的读取。MSComm控件可以采用轮询或事件驱动的方法从端口获取数据。在这个例子中使用了轮询方法。 1)通信口初始化 Private Sub Initialize() MSComm1.CommPort =1 MSComm1.Settings = “9600,E,7,1” MSComm1.InBufferSize = 1024 MSComml.OutBuffersize = 1024 MSComm1.InputLen = 0 MSComml.InputMode = comInputText MSComm1.Handshaking = comNone MSComm1.PortOpen = True End Sub 2)请求通信与确认 Private Function MakeHandshaking()As Boolean Dim InPackage As String MSComml.OutBufferCount = 0 MSComml.InBufferCount = 0 MSComml.OutPut = Chr(&H5) Do DoEvents Loop Until MSComml.InBufferCount = 1 InPackage = MSComml.Input If InPackage = Chr(&H6) Then MakeHandShaking = True Else MakeHandshaking = False End If End Function 3)发送命令报文 Private Sub SendFrame () Dim Outstring As String MSComml.OutBufferCount = 0 MSComml.InBufferCount = 0 Outstrin = Chr(&H2)+″on″+″10F604″+Chr(&H3)+″74″ MSComml.Output = Outstring End Sub 4)读取应答报文 Private Sub ReceiveFrame() Dim Instring As String Do DoEvents Loop Until MSComml.InBufferCount = 12 InString = MSComml.Inpult End Sub INDRAMAT MPU1 CONTROL CARD 109-0768-3A10-0?3 INDRAMAT RAC 2 AC-MAINSPINDLE DRIVE RAC 2.3-250-460-A01?-W1 INDRAMAT OPERATING PARAMETER PROGRAMMING MODULE MOD13/1X0005-00?1 INDRAMAT AC SERVO BLEEDER TBM 1.2-40-W1-024 INDRAMAT OPERATING PARAMETER PROGRAMMING MODULE 15/1X0004-001 *NEW* INDRAMAT 24/95 CIRCUIT BOARD VNK1 109-0568-2A01-0?4 INDRAMAT OPERATING PARAMETER PROGRAMMING MODULE MOD3/1X0003-001 INDRAMAT PRP3 CONTROL CARD 109-0468-4B07-0?1 PHD PNEUMATIC CYLINDER HVF 3/4 X 3/4-E-R NNB INDRAMAT MAC112B-0-LD-3-?C/130-B-1/S005 234999 PERMANENT MAGNET MOTOR INDRAMAT RAC 3 MAINSPINDLE AC DRIVE RAC 3.5-100-460-L00?-W1-220 TSUBAKI DOUBLE PITCH ATTACHMENT CHAIN LINK C2050ASSA1 C/L *NEW* LOT OF 10 INDRAMAT 3-PHASE INDUCTION SERVO MOTOR 2AD100D-B050R5-?AS03-A2N1 *REPAIRED* BOSCH DIGITAL SERVO DRIVE TYPE: DM 8K 1101-D *NO SOFTWARE MODULE* INDRAMAT BRUSHLESS SERVO MOTOR MAC112D-0-ED-3-?C/130-A-2/S010 / 223779 NUMATICS TEE FITTING 3103 04 20 *NEW* LOT OF 37 INDRAMAT TDM3...-020-300?-W0 MOD14/1X0022-08?1 931601 INDRAMAT BRUSHLESS SERVO MOTOR MAC112D-0-ED-4-?C/130-A-2/WI520?-S018 INDRAMAT PC BOARD ASSEMBLY 109-0728-4B03-0?4 INDRAMAT PERMANENT MAGNET SERVO MOTOR MAC112D-0-ED-4-?C/130-B-2/WI574?LX/S018 以上是进口电议^^ 82927-01的详细信息,如果您对进口电议^^ 82927-01的价格、厂家、型号、图片有任何疑问,请联系我们获取进口电议^^ 82927-01的最新信息 |