Download Hardware Manual
Transcript
Software Support for Windows OS UcanReadUserPort Syntax: UCANRET PUBLIC UcanReadUserPort ( tUcanHandle UcanHandle_p, BYTE* pbInValue_p); Usability: HW_INIT, CAN_INIT, version 2.16 or higher Description: Reads the current input value from the expansion port. Parameter: UcanHandle_p: USB-CAN handle received with the UcanInitHardware() or UcanInitHardwareEx(). function pbInValue_p: Address pointing to a variable that contains the read input value following the successful return of this function. This variable then contains the state of the 8-bit expansion port. Each bit in this parameter corresponds to matching pin on the expansion port. Return value: Error code of the function. USBCAN_SUCCESSFUL USBCAN_ERR_MAXINSTANCES USBCAN_ERR_ILLHANDLE USBCAN_ERR_BUSY USBCAN_ERR_IOFAILED USBCAN_ERR_ILLHW USBCAN_ERR_ILLPARAM USBCAN_ERR_DATA USBCAN_ERR_ABORT USBCAN_ERR_DISCONNECT USBCAN_ERR_TIMEOUT USBCAN_ERRCMD_… Note: After the USB-CANmodul has been connected to the PC, all expansion port pins are configured as inputs (except sysWORXX modules, see above). This function can also be used to read back the states of ports configured as outputs. SYS TEC electronic GmbH 2010 L-487e_22 119