AMX WebLinx Instruction Manual page 37

Administrator program
Table of Contents

Advertisement

Command Functions (Cont.)
WLGetInputChannelState
Gets the input channel state (0
or 1) in the specified System/
Device/Port within the
WebLinx Server.
WLGetOutputChannelState
Gets the output channel state
(0 or 1) in the specified Sys-
tem/Device/Port within the
WebLinx Server.
WLGetWordLevel
Gets the value of a word level
in the System/Device/ Port
combination within the
WebLinx Server.
WebLinx Administrator Program
Syntax:
ChannelState = WLGetInputChannelState (WLHost,
WLPort,plpdev, plpport, plpsys, plpchannel)
Arguments:
WLHost - WebLinx Server address (string)
WLPort - WebLinx Server control port (10501)
plpdev - Device number on the control network (16-bit integer)
plpport - Port on the device (16-bit integer)
plpsys - System ID of the control network (16-bit integer)
plpchannel - Channel Number (16-bit integer)
Return Value:
Channel State - 0 indicates the input channel is off and 1 indicates it's on.
The control program running within the Central Controller usually controls out-
put channel states.
Syntax:
ChannelState = WLGetOutputChannelState (WLHost,
WLPort, plpdev, plpport, plpsys, plpchannel)
Arguments:
WLHost - WebLinx Server address (string)
WLPort - WebLinx Server control port (10501)
plpdev - Device number on the control network (16-bit integer)
plpport - Port on the device (16-bit integer)
plpsys - System ID of the control network (16-bit integer)
plpchannel - Channel Number (16-bit integer)
Return value:
ChannelState - 0 indicates the output channel is off and 1 indicates it's on.
Syntax:
wLevelValue = WLGetWordLevel (WLHost, WLPort,
plpdev,plpport, plpsys, plplevel)
Arguments:
WLHost - WebLinx Server address (string)
WLPort - WebLinx Server control port (10501)
plpdev - Device number on the control network (16-bit integer)
plpport - Port on the device (16-bit integer)
plpsys - System ID of the control network (16-bit integer)
plplevel - Level on the device (16-bit integer)
Return value
wLevel Value - Level value returned from WebLinx Server (16-bit integer)
WebLinx Programming Commands
31

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Weblinx 1.1

Table of Contents