zoukankan      html  css  js  c++  java
  • 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")

  • 相关阅读:
    FindData_查找数据库中所有相关的字符
    删除所有的视图,存储过程
    游标
    常用sql收藏
    Java学习笔记15--引用传递
    Java学习笔记14--动态代理
    Java学习笔记13--比较器(Comparable、Comparator)
    Java学习笔记11--Annotation
    Java学习笔记12--国际化
    Java学习笔记10--枚举
  • 原文地址:https://www.cnblogs.com/greencolor/p/2507121.html
Copyright © 2011-2022 走看看