LP-8x21 SDK Manual, V1.0 Copyright © 2016 ICP DAS Co., Ltd. All Rights Resvered. Page: 3
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 ......................................................25
5.1.18ifconfig:displaystheipandnetworkmaskinformation(EquivalentDOSCommand:
ipconfig)................................................................................................................................25
5.1.19ping:usedtotestwhetherthehostinanetworkisreachable....................................25
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).......................................................27
5.3ASimpleExample–Hellow orld.c.......................................................................... 29
5.4i‐TalkUtility ........................................................................................................... 34
6.LIBI8K.A .............................................................................................36
6.1SystemInformationFunctions .............................................................................. 37
6.2DigitalInput/OutputFunctions ............................................................................. 61
6.2.1ForI‐8000modulesviaparallelport .............................................................................61
6.2.2ForI‐7000/I‐8000/I‐87000modulesviaserialport........................................................78
6.3AnalogInputFunctions ....................................................................................... 118
6.3.1ForI‐8000modulesviaparallelport ...........................................................................118
6.3.2ForI‐7000/I‐8000/I‐87000modulesviaserialport......................................................134
6.4AnalogOutputFunctions .................................................................................... 160
6.4.1ForI‐8000modulesviaparallelport ...........................................................................160
6.4.2ForI‐7000/I‐8000/I‐87000modulesviaserialport......................................................165
6.5ErrorCodeExplanation ....................................................................................... 195
6.63‐axisEncoderFunctions..................................................................................... 196
6.72‐axisStepper/ServoFunctions........................................................................... 204
7.DemosforLP‐8x21ModulesWithCLanguage .................................236
7.1DIOControlDemoforI‐7kModules.................................................................... 236
7.2AIOControlDemoforI‐7kModules.................................................................... 241
7.3DIOControlDemoforI‐87KWModules.............................................................. 243
7.3.1I‐87KWModulesinslotsofLP‐8x21............................................................................244
7.3.2I‐87KWModulesinslotsonI‐87KWI/Oexpansionunit..............................................245
7.3.3I‐87KWModulesinslotsonI‐8000Controller.............................................................247
7.4AIOControlDemoforI‐87KWModules.............................................................. 248
7.4.1I‐87KWModulesinslotsonanLP‐8x21 ......................................................................248