Download Quicker - ICP DAS USA`s I

Transcript
Quicker User’s Manual
QuickerIO Function
unsigned char GetDIO(unsigned short iMBAddr, unsigned char *iRecv, unsigned char iAttribute);
unsigned char GetAIO(unsigned short iMBAddr, float *iRecv, unsigned char iAttribute);
unsigned char SetDO(unsigned short iMBAddr, unsigned char iSend);
unsigned char SetAO(unsigned short iMBAddr, float iSend);
Modbus Function
unsigned char MBSetToCoil(unsigned short iMBAddress, unsigned char iStatus, unsigned char iAttr)
unsigned char MBGetFromCoil(unsigned short iMBAddress, unsigned char *iStatus, unsigned char iAttr)
unsigned char MBSetToReg(unsigned short iMBAddress, short iStatus, unsigned char iAttr)
unsigned char MBGetFromReg(unsigned short iMBAddress, short *iStatus, unsigned char iAttr)
UserShare Function
unsigned char UserSetCoil(unsigned short iUserAddress, unsigned char iStatus);
unsigned char UserGetCoil(unsigned short iUserAddress, unsigned char *iStatus);
unsigned char UserSetReg_Str(unsigned short iUserAddress, char *iStatus);
unsigned char UserGetReg_Str(unsigned short iUserAddress, char *iStatus);
unsigned char UserSetReg(unsigned short iUserAddress, long *iStatus, unsigned char iDType);
unsigned char UserGetReg(unsigned short iUserAddress, long *iStatus, unsigned char iDType);
4.4.1.1 System Function
This group provides two functions for users to start and stop "Quicker.exe" before
using "QuickerIO Function" and "Modbus Function".
StartQuicker
This function launches Quicker with different mode.
unsigned char StartQuicker(
unsigned char iMode
)
Parameters
iMode
[in] The decimal number of kernel mode. It is always 1 now. It will provide another
mode in the future.
Return Values
0 indicates success. If Quicker has been run, the function will return mode number.
(Please refer to the Appendix 2.1)
Remarks
You have to call this function to launch Quicker before using the QuickerIO and
Modbus functions.
Requirements
Runs on
Versions
Defined in
WinCon 8000
4.1.0.01 and later Quicker.lib
Example
//Start up Quicker with mode 1
Ver: 1.02
Date: Jan-21 2005
Include
WinConAgent.h
Page: 54
Link to