#==============================================================
#
#  Abs:  Initalize Serial device 
#
#  Name: init_asyn.cmd.soft
#
#  Side:  This script expectes the following 
#         macros tobe defined upon entry
#           TS_NODE   - Terminal server node        (ie. ts-b34-nw03)
#           TS_PORT   - Terminal server port no.    (ie. 2001-2016  )
#           PORT_NAME - Asyn portname defined in db (ie. LGPS_AS01_1)
#
#  Facility: EED Laser Controls
#
#  Auth: 13-Mar-2019, K. Luchini      (LUCHINI)
#  Rev:  dd-mmm-yyyy, Reviewer's Name (USERNAME)
#--------------------------------------------------------------
#  Mod:
#        dd-mmm-yyyy, First Lastname  (USERNAME):
#          comment
#
#==============================================================
#
# Genesys ps: Setup serial connection
drvAsynIPPortConfigure( "${PORT_NAME}","${TS_NODE}:${TS_PORT}",0,0,0)

# Use the following commands for serial ASCII
#asynOctetSetOutputEos("${PORT_NAME}",0,"\r")
#asynOctetSetInputEos( "${PORT_NAME}",0,"\r")

# Diagnostics
#asynSetTraceMask(  "${PORT_NAME}" ,-1,0x9)
#asynSetTraceIOMask("${PORT_NAME}" ,-1,0x2)

# End of script

