IOC port

    * If you're using an Ethernet/RS-232 converter or a device which communicates over a telnet-style socket connection you need to specify the Internet host and port number like:

          drvAsynIPPortConfigure("L0","164.54.9.91:4002",0,0,0)

    * If you're using a serial line directly attached to the IOC you need something like:

          drvAsynSerialPortConfigure("L0","/dev/ttyS0",0,0,0)
          asynSetOption("L0", -1, "baud", "9600")
          asynSetOption("L0", -1, "bits", "8")
          asynSetOption("L0", -1, "parity", "none")
          asynSetOption("L0", -1, "stop", "1")
          asynSetOption("L0", -1, "clocal", "Y")
          asynSetOption("L0", -1, "crtscts", "N")

    * If you're using a serial line directly attached to a vxWorks IOC you must first configure the serial port interface hardware. The following example shows the commands to configure a port on a GreenSprings UART Industry-Pack module.

          ipacAddVIPC616_01("0x6000,B0000000")
          tyGSOctalDrv(1)
          tyGSOctalModuleInit("RS232", 0x80, 0, 0)
          tyGSOctalDevCreate("/tyGS/0/0",0,0,1000,1000)
          drvAsynSerialPortConfigure("L0","/tyGS/0/0",0,0,0)
          asynSetOption("L0",-1,"baud","9600")

 

转载于:https://www.cnblogs.com/greencolor/archive/2012/05/18/2507121.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值