LP-8x21 SDK Manual, V1.3 Copyright © 2016 ICP DAS Co., Ltd. All Rights Resvered. Page: 3
5.1.12ps:displaysalistofthecurrentlyactiveprocedures...................................................25
5.1.13ftp:transfersafileusingthefiletransferprotocol(FTP).............................................25
5.1.14telnet:extablishesaconnectiontoanotherPCviaTelnetterminal.............................25
5.1.15date:printsorsetsthesystemdateandtime.............................................................25
5.1.16hwclock:queriesandsetsthehardwareclock(RTC)...................................................25
5.1.17netstat:displaysthecurrentstateofthenetwork ......................................................26
5.1.18ifconfig:displaystheipandnetworkmaskinformation(EquivalentDOSCommand:
ipconfig)................................................................................................................................26
5.1.19ping:usedtotestwhetherthehostinanetworkisreachable....................................26
5.1.20clear:clearsthescreen ...............................................................................................26
5.1.21passwd:usedtochangethepassword........................................................................26
5.1.22reboot:rebootstheLinPAC(oruse‘shutdown–rnow’)......................................26
5.2GeneralGCCInstructions ...................................................................................... 26
5.2.1Compi lewithoutlinkingtotheLP‐8x21library.............................................................27
5.2.2Compi lebylinkingtotheLP‐8x21library(libi8k.a).......................................................28
5.3ASimpleExample–Helloworld.c.......................................................................... 30
5.4i‐TalkUtility ........................................................................................................... 36
6.LIBI8K.A .............................................................................................38
6.1SystemInformationFunctions .............................................................................. 39
6.2DigitalInput/OutputFunctions ............................................................................. 63
6.2.1ForI‐8000modulesviaparallelport .............................................................................63
6.2.2ForI‐7000/I‐8000/I‐87000modulesviaserialport........................................................80
6.3AnalogInputFunctions ....................................................................................... 120
6.3.1ForI‐8000modulesviaparallelport ...........................................................................120
6.3.2ForI‐7000/I‐8000/I‐87000modulesviaserialport......................................................129
6.4AnalogOutputFunctions .................................................................................... 155
6.4.1ForI‐8000modulesviaparallelport ...........................................................................155
6.4.2ForI‐7000/I‐8000/I‐87000modulesviaserialport......................................................160
6.5ErrorCodeExplanation ....................................................................................... 190
6.63‐axisEncoderFunctions..................................................................................... 191
6.72‐axisStepper/ServoFunctions........................................................................... 199
7.DemosforLP‐8x21ModulesWithCLanguage .................................231
7.1DIOControlDemoforI‐7kModules.................................................................... 231
7.2AIOControlDemoforI‐7kModules.................................................................... 236
7.3DIOControlDemoforI‐87KWModules.............................................................. 238
7.3.1I‐87KWModulesinslotsofLP‐8x21............................................................................239
7.3.2I‐87KWModulesinslotsonI‐87KWI/Oexpansionunit..............................................240
7.3.3I‐87KWModulesinslotsonI‐8000Controller.............................................................242
7.4AIOControlDemoforI‐87KWModules.............................................................. 243