#==============================================================
#
#  Abs: Configure Pico Motor Controller Hardware (2 controllers in stack)
#
#  Name: init_nf_pico.cmd
#
#  Rem:  Upon entry we the following macros must be defined.
#
#         PORT_N    - Asyn port name, must match db ex) NFP2
#         MC_NODE   - Motor Controller Nodename     ex) moc-li20-mc16
#
#  Facility: EED Motion Controls
#
#  Auth: 15-Jan-2015, Ziga Oven       (zoven)
#  Rev:  dd-mmm-yyyy, Reviewer's Name (USERNAME)
#--------------------------------------------------------------
#  Mod:
#        15-May-2024, S. Alverson (alverson):
#         Modified for laser application
#        03-Mar-2021,K. Luchini       (LUCHINI):
#         copied from facetXPS/iocBoot/sioc-li20-mc16/st.cmd
#
#==============================================================

# Configure port for motion controller
drvAsynIPPortConfigure("${PORT_N}","${MC_NODE}:23",0,0,0)
asynOctetSetInputEos("${PORT_N}",0,"\r")
asynOctetSetOutputEos("${PORT_N}",0,"\r")

# Configure controller, each controller just has 4 axis
# motorPortName (C=controller number in chain), portName, number of axes, movingPollPeriod, idlePollPeriod, controllerNumber
Pico8742CreateController("${PORT_N}-C${C}","${PORT_N}",4,500,2000,"${C}")

# End of file
