98
RPC Quick Reference
E
RROR
I
NFORMATION
M
ETHODS
..............................100
GetLastErrorCode ( )...........................................100
GetLastErrorString ( ) .........................................100
GetLastExtendedErrorString ( )...........................100
G
ENERAL
I
NFORMATION
M
ETHODS
..........................101
AllState_Get ( ) ....................................................101
GetMachineType ( ) .............................................101
GetFirmwareVersion ( ).......................................101
ValidatePassword ( Password )...........................102
Time_GetDate ( ) .................................................102
Time_Sleep ( Milliseconds ).................................102
N
ETWORK
M
ETHODS
................................................104
Net_GetNetCardCount ( ) ....................................104
Net_GetIPAddress ( )...........................................104
Net_GetIPAddressEx ( NetCard ) ........................104
Net_GetSubnetMask ( ) ........................................104
Net_GetSubnetMaskEx ( NetCard ) .....................105
Net_PostHtmlData ( Url, PostData )...................105
Net_PostHtmlDataEx ( NetCard, Url, IsExpression,
PostData, Timeout ) .............................................105
Net_SendMail( SenderId, ToIds, CcIds, BccIds,
Subject, MessageBody ) .......................................106
Net_SendMailEx ( NetCard, SenderId, ToIds, CcIds,
BccIds, ReturnPathId, ReturnRcpId, MsgComment,
Subject, IsExpression, MessageBody ).................106
T
ELNET
M
ETHODS
....................................................108
Telnet_Send ( NetCard, Msg, MaxWaitMS )........108
Telnet_SendExpression ( NetCard, Expression,
MaxWaitMS ) .......................................................108
Telnet_Read ( NetCard ) ......................................108
Telnet_ClearReadBuffer ( NetCard ) ...................109
Telnet_ReadBufferCount ( NetCard ) ..................109
B
UZZER
M
ETHODS
....................................................109
Buzzer_On ( ) .......................................................109
Buzzer_Off ( ).......................................................109
Buzzer_GetState ( ) ..............................................110
L
OGGING
M
ETHODS
..................................................110
Log_Write ( FileName, IsExpression, Buffer,
MaxSize ) .............................................................110
Log_ReadFile ( FileName, MaxLength ) .............111
Log_ClearFile ( FileName ) ................................111
Log_FirstFile ( Wildcard )...................................111
Log_NextFile ( Wildcard ) ...................................111
S
ERIAL
M
ETHODS
.....................................................113
Serial_GetSettings ( Port )...................................113
Serial_Send ( Port, Msg, MaxWaitMS )...............113
Serial_SendExpression ( Port, Expression, Data )
.............................................................................114
Serial_Read ( Port ) .............................................114
Serial_ClearReadBuffer ( Port ) ..........................114
Serial_ReadBufferCount ( Port ) .........................115
Serial_GetPortCount ( ).......................................115
R
ELAY
M
ETHODS
(WACI
NX+
O
NLY
).....................116
Relay_On ( Port ).................................................116
Relay_Off ( Port ).................................................116
Relay_GetState ( Port ) ........................................116
Relay_GetPortCount ( ) .......................................117
D
IGITAL
I/O
M
ETHODS
(WACI
NX+
O
NLY
) ............118
DIO_Read ( Port )................................................118
DIO_OutputMode_Close ( Port ).........................118
DIO_OutputMode_Open ( Port ) .........................118
DIO_IsOutput ( Port )..........................................119
DIO_IsPulledUp ( Port )......................................119
DIO_GetPortCount ( ) .........................................119
A/D
C
ONVERTER
M
ETHODS
(WACI
NX+
O
NLY
).....121
AD_ReadVoltage ( Port ) .....................................121
AD_ReadDigital ( Port ) ......................................121
AD_DigitalToVoltage ( Port, Digital ) ................121
AD_MaxVoltage ( Port ) ......................................122
AD_MinVoltage ( Port ).......................................122
AD_MaxDigital ( Port ) .......................................123
AD_MinDigital ( Port )........................................123
AD_GetPortCount ( ) ...........................................123
AD_SetVoltage ( Port, Val ).................................124
AD_SetDigital ( Port, Val )..................................124
IR
M
ETHODS
.............................................................125
IR_SendCommand ( Port, Group, Command ) ....125
IR_SendCommandEx ( Port, Group, Command,
Sequence, Repeat ) ...............................................125
IR_SendData ( Port, Sequence, Data ) ................126
IR_ListAllGroups ( ).............................................127
IR_ListAllCommandsInGroup ( Group )..............128
IR_ListAllCommands ( ).......................................128
IR_GetGroupMake ( Group )...............................128
IR_GetGroupModel ( Group ) .............................129
IR_GetGroupRemote ( Group )............................129
IR_GetGroupComment ( Group ) ........................130
IR_GetPortCount ( ).............................................130
E
VENT
M
ANAGER
M
ETHODS
....................................131
IsEventManagerEnabled ( ) .................................131
EnableEventManager ( Enable )..........................131
WaitOnChangeEvent ( ChangeMask, TimeOut ) .131
E
VENT
M
ETHODS
......................................................133
AddEvent ( Name, Type, Concurrent, Source, Match
) ............................................................................133
AddRemoteEvent ( Client, EventRecord ) ............133
CloneEventById ( EventId, CloneActions, NewName
) ............................................................................134
DeleteEventById ( EventId ).................................134
DeleteEventByName ( Name )..............................135
GetEventByIdx ( Idx )...........................................135
GetEventByName ( Name ) ..................................135
GetEventConcurrent ( EventId ) ..........................136
GetEventCount ( ) ................................................136