
Dispenser
A control class for Technik product
dispensers and the Microsoft© .Net 2.0 framework.
Distribution Package
TMIDispenser.dll The Dispenser class library.
DispenserDemo.zip Visual Studio 2008 template for a
basic dispenser sample application.
ReadingDispenserDemo.zip Visual Studio 2008 template for a reading
dispenser sample application such as a magnetic stripe or bar code card
dispenser.
Table of Contents
|
Dispenser Control |
4 |
|
4 |
|
|
5 |
|
|
5 |
|
|
6 |
|
|
6 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
8 |
|
|
8 |
|
|
8 |
|
|
8 |
|
|
9 |
|
|
9 |
|
|
10 |
|
|
10 |
|
|
11 |
|
|
11 |
|
|
12 |
|
|
12 |
|
|
12 |
|
|
13 |
|
|
13 |
|
|
13 |
|
|
14 |
|
|
14 |
|
|
15 |
|
|
15 |
|
|
16 |
|
|
16 |
|
|
17 |
|
|
17 |
|
|
18 |
|
|
18 |
|
|
19 |
|
|
19 |
|
|
20 |
|
|
20 |
|
|
21 |
|
|
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
|
24 |
|
|
26 |
|
|
26 |
|
|
26 |
|
|
26 |
|
|
26 |
|
|
27 |
|
|
27 |
|
|
28 |
|
|
28 |
|
|
30 |
|
|
32 |
|
|
|
|
Introduction
The TMI Dispenser class is a .Net 2.0
library that allows Windows based applications to easily communicate with a
product dispenser. Basic dispensers with
one to eight product columns are supported.
The controller incorporated in the dispenser also provides the ability
to interface to other devices such as bill acceptors, lamps, and switches.
The Dispenser library communicates
with the dispenser controller through a serial port on the host PC. The library handles all the communication
functions and protocol.
The control board and the Dispenser
class do more than just make it easy to interface a product dispenser to a
personal computer. Support is provided
for a bill acceptor, LCD display, and up to 20 lamps and switches. All the functions of a full featured vending
machine can be controlled using a single COM port.
Properties
Methods
Events
Dispensing Mechanism
Technik can supply dispensing
mechanisms for a wide variety of products including cards of all sizes, boxes,
CDs and DVDs. These range from single
product dispensers to dispensers that can dispense up to eight different products.
Some mechanisms include the ability
to read and dispense products that incorporate bar code or magnetic stripe
information.
The Dispenser class provides a common
set of facilities for using these dispensers
Properties
LowProduct
(option)
SortGateOpen
(option)
ReadDataLength
(Mag Stripe or Bar Code)
ReadData (Mag
Stripe or Bar Code)
Methods
Bill Acceptor
Using a Technik dispenser and the
Dispenser class provides a simple way to interface a pulse mode bill acceptor
to a PC.
Properties
Methods
Events
Digital Inputs
Up to twelve digital inputs are
available to the application, depending on the control board model. These are typically used for mechanical
switches such as push buttons, but can be freely used with any 5V compatible
signal.
Properties
Methods
Events
Digital Outputs
Four or eight digital outputs are
available to the application, depending on the control board model. These are typically used for incandescent
lamps or LEDs, but can be used to drive any device within the power limits of
the output.
Methods
Messages can be displayed using a two
line by sixteen character LCD display.
Methods
The constructor for the dispenser
class is not overloaded and takes no arguments.
Syntax
Dispenser()
Initializes a new instance of the
Dispenser class.
CommPort Property
Gets or sets the communications port
number.
Syntax C#
public Int16 CommPort{ get; set; }
Property value
Type: System.Int16
The number of the COM port.
PortOpen Property
Gets or sets the open status of the
communications port.
Syntax C#
public bool PortOpen{ get;
set; }
Property value
Type: System.Boolean
true = open. False
= close(d).
ColumnStatus Property
Overloaded. Gets a value reflecting the status of the
selected product column.
Syntax C#
public Int16 ColumnStatus{ get; }
public Int16 ColumnStatus(column#){ get; }
column# is an optional parameter specifying the column whose status is to
be returned. Default is 1.
Property value
Type: System.Int16
Possible values are:
|
-1 |
Column does not
exist. |
|
0 |
OK. Column ready. |
|
1 |
Sold Out. Only on dispensers with sold out sensors. |
|
2 |
Down. Failed to dispense a product. |
This value is updated after each command
is completed. To make sure that the
column is ready, refresh this property using the UpdateStatus method.
For one column dispensers, the same
information can be obtained from the Status property.
Gets or sets the number of product
columns in the mechanism.
Syntax C#
public Int16 MechSize{ get;
set; }
This property defaults to one when
the control is loaded. It must be set by
the application to support mechanisms with more than one column.
Property value
Type: System.Int16
The number of dispensing columns.
Gets a boolean expression showing
whether the last operation completed successfully.
Syntax C#
public bool Success{ get; set;
}
Property value
Type: System.Boolean
Returns an expression specifying the
completion status of the last operation. True equals successful completion. Note that this value can be true, but there
could also be a condition that would prevent some future operation from
completing. See the Status
property.
Read Only Returns an integer value
representing the state of the dispenser.
Syntax C#
public Int16 Status{ get; set;
}
Property value
Type: System.Int16
Return values are:
|
0 |
OK. Dispenser is ready. |
||||
|
1 |
Sold Out. No product is available in any column |
||||
|
2 |
Down. No column is able to dispense. |
||||
|
>2 |
Fatal error. The value represents the error
|
This value is updated after each
command is completed. To make sure that
the dispenser is ready, refresh this property using the UpdateStatus
method.
Read Only Returns an integer value
showing the completion status of the last operation.
Syntax C#
public Int16 Success{ get; }
Property value
Type: System.Int16
Values of the Error property
are:
|
0 |
Success |
|
1 |
Failure. Check StatusProperty.html
property for more information. |
|
2 |
Command
mismatch. This can occur if a previous
command timed-out, but completed after a new command was issued. |
|
3 |
Time out. The TimeoutEvent.html
event will also occur prior to this status being returned. |
This is the same value that is
returned by each of the Dispenser methods.
Read Only Returns an integer value
showing the status of the Bill Acceptor.
Syntax C#
public Int16 BAstatus{ get; }
Property value
Type: System.Int16
Values of the BAstatus
property are:
|
0 |
Up |
|
2 |
Down. (The bill acceptor has detected a problem) |
|
11 |
Short Pulse. A pulse received from the bill acceptor was
out of tolerance. |
|
12 |
Long Pulse. A pulse received from the bill acceptor was
out of tolerance. |
The timing of the pulses received on the bill
acceptor input is monitored by the controller for unexpectedly long or short
pulse widths. If a pulse that is outside acceptable limits is found, the status
will be 12 (long pulse) or 11 (short pulse).
These errors can be the result of electronic attempts to defraud the
machine or some other electrical problem. In any case these are regarded as
non-recoverable errors and will remain asserted until the controller is reset.
The bill acceptor itself may detect an error
condition. These vary by manufacturer and can range from a full bill stacker to
electronic failure. Any of these will cause the bill acceptor status to be set
to 2 (Down). Once the problem is corrected the status will return to 0 (Up). IMPORTANT: The status message will only show
Down status while the bill acceptor is enabled (see the BillEnable method).
Gets or sets a value to be assigned
to each pulse from the bill acceptor.
Syntax C#
public Int32 BillValue{ get;
set; }
Property value
Type: System.Int32
The bill acceptor issues a string of
pulses each time a bill is deposited.
The number of pulses indicates the value of the bill. On most
Read Only Returns a long integer
containing the number of credits that have been accumulated by the control. This value is reset to zero after each time it
is read.
Syntax C#
public Int32 GetCredits{ get; }
Property value
Type: System.Int32
As bills are deposited in the bill
acceptor, the pulses sent by the bill acceptor are multiplied by the BillValue
property and accumulated by the control.
This property is a long integer containing the credits accumulated since
the last time the GetCredits property was examined. Each time this property is read, the
accumlated credits are reset to zero.
The value of the GetCredits property
and the PeekCredits property is the same.
The only difference is that reading this value using PeekCredits does
not reset it to zero.
Read Only Returns a long integer
containing the number of credits accumulated by the control.
Syntax C#
public Int32 PeekCredits{ get; }
Property value
Type: System.Int32
As bills are deposited in the bill
acceptor, the pulses sent by the bill acceptor are multiplied by the BillValue
property and accumulated by the control.
This property is a long integer containing the credits accumulated since
the last time the GetCredits property was examined.
ModeSwitchValue Property
Read Only Returns an integer
containing the value of the "mode" switch inputs.
Syntax C#
public Int32 ModeSwitchValue{ get; }
Property value
Type: System.Int16
There are four mode input pins that
are combined to form a value in the range 0 through 15. Refer to the Controller Connections section
for more information.
See also:
ModeChange event.
Read Only Returns an expression indicating
whether the product stack has fallen below the low product sensor.
Syntax C#
public bool LowProduct{ get; }
Property value
Type: System.Boolean
This property is set to true when the
product stack is below the low product sensor and false when the product stack
is blocking the sensor.
NOTE: The low product sensor is an
option on the 110-022 controller only.
If it is not installed this property will always be False.
SortGateOpen Property
Read Only Returns a boolean
expression indicating whether the sort gate is open. Only available on dispensers equipped with a
sorter.
Syntax C#
public bool SortGateOpen{ get; }
Property value
Type: System.Boolean
The value of this property will be
true is the gate is open. This will only
occur as the result of a product becoming lodged in the sorter or a mechanical
failure. It should always be regarded as
an error.
ReadDataLength Property
Read Only Returns the number of
characters read from the magnetic stripe or bar code reader.
Syntax C#
public Int16 ReadDataLength{ get; }
Property value
Type: System.Int16
This value is the number of
characters in the ReadData property.
Read Only Contains the data read
from the magnetic stripe or bar code.
Syntax C#
public string ReadData{ get; }
Property value
Type: System.string
Updated after each CardRead
operation. The number of characters in
the string can be retrieved from the ReadDataLength property.
Staged Property (mag
stripe reader only)
Read Only Returns a boolean
expression indicating whether a card has been advanced to the 'staged'
position.
Syntax C#
public bool Staged{ get; }
Property value
Type: System.Boolean
After invoking the Read method, a
card is moved from the bottom of the stack, past the read heads and stops at
the staged position. From here it can be
dispensed using the Vend or Outstack methods or returned to the stack with the
Restack method. While there is a card in
this position, the value of this property will be True. If the Read method is invoked while the the
card is in the staged position, it will be restacked and then read again.
All methods in the Dispenser class return
a 16 bit integer indicating completion status.
This value can also be retrieved using the Error
property. Also, each method accepts an
optional parameter to override the default time the class will wait for the
method to complete.
Reset Method
Resets the dispenser controller to
it's initial state.
Syntax C#
public
Int16 Reset()
public
Int16 Reset( Int32 Timeout )
Parameters
Timeout is an optional long integer that specifies the time in
milliseconds to wait for the command to complete. Default is 10000ms (10 seconds)
Return
|
0 |
Success |
|
1 |
Failure (should
not occur) |
|
2 |
Command
mismatch. This can occur if a previous
command timed-out, but completed after a new command was issued. |
|
3 |
Time out. The Timeout event will
occur prior to this status being returned. |
Following this, the following
properties will return to their default states:
|
0 (or 1 if sold out) |
|
|
0 |
|
|
0 (or 1 if sold out) |
Switches will be enabled and the bill
acceptor will be disabled.
See also:
SwitchEnable method
SwitchDisable method
BillEnable method
BillDisable method
Refreshes all properties to reflect
the current dispenser status.
Syntax C#
public
Int16 UpdateStatus()
public
Int16 UpdateStatus( Int32 Timeout )
Parameters
Timeout is an optional long integer that specifies the time in
milliseconds to wait for the command to complete. Default is 1000ms (1 second)
Return
|
0 |
Success |
|
1 |
Failure (should
not occur) |
|
2 |
Command
mismatch. This can occur if a previous
command timed-out, but completed after a new command was issued. |
|
3 |
Time out. The Timeout event will
occur prior to this status being returned. |
This method should be invoked
periodically while the application is idle to detect changes in dispenser
readiness.
Vend Method
Dispense a product.
Syntax C#
public Int16 Vend()
public Int16 Vend( Int16 Column
)
public Int16 Vend( Int32 Timeout
)
public Int16 Vend( Int16 Column,
Int32 Timeout )
Parameters
Column is an optional integer value specifying the column to dispense
from. Valid values are 0 through n where
n equals the MechSize property.
If 0 is used, the vend will be from the first available (not down or
sold-out) column. The default is 0.
Timeout is an optional long integer that specifies the time in
milliseconds to wait for the command to complete. Default is 9000ms (9 seconds)
Return
|
0 |
Success |
|
1 |
Failure. Check the Status property
for more information. |
|
2 |
Command
mismatch. This can occur if a previous
command timed-out, but completed after a new command was issued. |
|
3 |
Time out. The Timeout event will
occur prior to this status being returned. |
On the magnetic stripe dispenser, the
card must first be in the Staged position.
Read Method
Reads the bar code or magnetic stripe
(reader dispensers only).
Syntax C#
public Int16 Read()
public Int16 Read( Int32 Timeout
)
Parameters
Timeout is an optional long integer that specifies the time in
milliseconds to wait for the command to complete. Default is 12000ms (12 seconds).
Return
|
0 |
Success |
|
1 |
Failure. Check the Status property
for more information. |
|
2 |
Command
mismatch. This can occur if a previous
command timed-out, but completed after a new command was issued. |
|
3 |
Time out. The Timeout event will
occur prior to this status being returned. |
This causes the information to be
read, but does not dispense the product.
Use the Vend or Oustack method to
compete the dispense.
See also:
ReadData property
ReadDataLength
property
Outstack Method
Causes the product to be delivered to
the alternate chute on dispensers so equipped.
This can be useful for discarding unreadable product.
Syntax C#
public Int16 Outstack()
public Int16 Outstack( Int32 Timeout
)
Parameters
Timeout is an optional long integer that specifies the time in
milliseconds to wait for the command to complete. Default is 9000ms (9 seconds)
Return
|
0 |
Success |
|
1 |
Failure. Check the Status property
for more information. |
|
2 |
Command
mismatch. This can occur if a previous
command timed-out, but completed after a new command was issued. |
|
3 |
Time out. The Timeout event will
occur prior to this status being returned. |
On the magnetic stripe dispenser, the
card must first be in the Staged position.
See also:
Vend Method
Restack Method (mag
stripe reader only)
Returns a card from the Staged
position to the product stack.
Syntax C#
public Int16 Restack()
public Int16 Restack( Int32 Timeout
)
Parameters
Timeout is an optional long integer that specifies the time in
milliseconds to wait for the command to complete. Default is 9000ms (9 seconds)
Return
|
0 |
Success |
|
1 |
Failure. Check the Status property
for more information. |
|
2 |
Command
mismatch. This can occur if a previous
command timed-out, but completed after a new command was issued. |
|
3 |
Time out. The Timeout event will
occur prior to this status being returned. |
See also:
Staged Property
Vend Method
Outstack Method
MotorOn Method
Runs the dispenser motor for
maintenance purposes.
Syntax C#
public Int16 MotorOn()
public Int16 MotorOn( Int32 Timeout
)
Parameters
Timeout is an optional long integer that specifies the time in
milliseconds to wait for the command to complete. Default is 2000ms (2 seconds)
Return
|
0 |
Success |
|
1 |
Failure (should
not occur) |
|
2 |
Command
mismatch. This can occur if a previous
command timed-out, but completed after a new command was issued. |
|
3 |
Time out. The Timeout event will
occur prior to this status being returned. |
See also: MotorOff
Method
Stops running the dispenser motor for
maintenance purposes.
Syntax C#
public Int16 MotorOff()
public Int16 MotorOff( Int32 Timeout
)
Parameters
Timeout is an optional long integer that specifies the time in
milliseconds to wait for the command to complete. Default is 2000ms (2 seconds)
Return
|
0 |
Success |
|
1 |
Failure (should
not occur) |
|
2 |
Command
mismatch. This can occur if a previous
command timed-out, but completed after a new command was issued. |
|
3 |
Time out. The Timeout event will
occur prior to this status being returned. |
See also: MotorOn
Method
SwitchEnable Method
Allows the SwitchPress
and SwitchRelease events to occur.
Syntax C#
public Int16 SwitchEnable()
public Int16 SwitchEnable(
Int32 Timeout )
Parameters
Timeout is an optional long integer that specifies the time in
milliseconds to wait for the command to complete. Default is 1000ms (1 second)
Return
|
0 |
Success |
|
1 |
Failure (should
not occur) |
|
2 |
Command
mismatch. This can occur if a previous
command timed-out, but completed after a new command was issued. |
|
3 |
Time out. The Timeout event will
occur prior to this status being returned. |
See also:
SwitchDisable Method
SwitchPress Event
SwitchRelease Event
Prevents the SwitchPress
and SwitchRelease events from occurring.
Syntax C#
public Int16 SwitchDisable()
public Int16 SwitchDisable(
Int32 Timeout )
Parameters
Timeout is an optional long integer that specifies the time in
milliseconds to wait for the command to complete. Default is 1000ms (1 second)
Return
|
0 |
Success |
|
1 |
Failure (should
not occur) |
|
2 |
Command
mismatch. This can occur if a previous
command timed-out, but completed after a new command was issued. |
|
3 |
Time out. The Timeout event will
occur prior to this status being returned. |
See also:
SwitchEnable Method
SwitchPress Event
SwitchRelease Event
BillEnable Method
Allows the Bill Acceptor to accept
cash.
Syntax C#
public Int16 BillEnable()
public Int16 BillEnable( Int32
Timeout )
Parameters
Timeout is an optional long integer that specifies the time in
milliseconds to wait for the command to complete. Default is 1000ms (1 second)
Return
|
0 |
Success |
|
1 |
Failure (should
not occur) |
|
2 |
Command
mismatch. This can occur if a previous
command timed-out, but completed after a new command was issued. |
|
3 |
Time out. The Timeout event will
occur prior to this status being returned. |
Under certain conditions, such as
when the dispenser is out of product, it is important to prevent the bill
acceptor from accepting money. This
method controls the bill acceptor's enable input to allow bills to be
accepted.
The bill acceptor is disabled when
the dispenser is first powered on and also following a reset.
See also:
BillDisable Method
BillAccepted Event
BillDisable Method
Prevents the Bill Acceptor from
accepting cash.
Syntax C#
public Int16 BillDisable()
public Int16 BillDisable(
Int32 Timeout )
Parameters
Timeout is an optional long integer that specifies the time in
milliseconds to wait for the command to complete. Default is 1000ms (1 second)
Return
|
0 |
Success |
|
1 |
Failure (should
not occur) |
|
2 |
Command
mismatch. This can occur if a previous
command timed-out, but completed after a new command was issued. |
|
3 |
Time out. The Timeout event will
occur prior to this status being returned. |
Under certain conditions, such as
when the dispenser is out of product, it is important to prevent the bill
acceptor from accepting money. This
method controls the bill acceptor's enable input to prevent bills from being
accepted.
The bill acceptor is disabled when
the dispenser is first powered on and also following a reset.
See also:
BillEnable Method
BillAccepted Event
LampOn Method
Turns on one lamp.
Syntax C#
public Int16 LampOn( Int16 Lamp
Number )
public Int16 LampOn( Int16 Lamp
Number, Int32 Timeout )
Parameters
Lamp Number is an integer containing the number of the lamp to turn on. Possible values are 1-4 for the one column
controller and 1-8 for the multi column controller.
Timeout is an optional long integer that specifies the time in
milliseconds to wait for the command to complete. Default is 1000ms (1 second)
Return
|
0 |
Success |
|
1 |
Failure (should
not occur) |
|
2 |
Command
mismatch. This can occur if a previous
command timed-out, but completed after a new command was issued. |
|
3 |
Time out. The Timeout event will
occur prior to this status being returned. |
This method turns on one medium
current output at a time. These are
commonly used to drive incandescent lamps or LEDs, hence the name of the
method. These same outputs could easily
be used for other things requiring a digital output.
All lamps are turned off when the
dispenser is first powered on and also following a reset.
See also:
LampOff Method
LampMask Method
LampOff Method
Turns off one lamp.
Syntax C#
public Int16 LampOff( Int16 Lamp
Number )
public Int16 LampOff( Int16 Lamp
Number, Int32 Timeout )
Parameters
Lamp Number is an integer containing the number of the lamp to turn off. Possible values are 1-4 for the one column
controller and 1-8 for the multi column controller.
Timeout is an optional long integer that specifies the time in
milliseconds to wait for the command to complete. Default is 1000ms (1 second)
Return
|
0 |
Success |
|
1 |
Failure (should
not occur) |
|
2 |
Command
mismatch. This can occur if a previous
command timed-out, but completed after a new command was issued. |
|
3 |
Time out. The Timeout event will
occur prior to this status being returned. |
This method turns off one medium
current output at a time. These are
commonly used to drive incandescent lamps or LEDs, hence the name of the
method. These same outputs could easily
be used for other things requiring a digital output.
All lamps are turned off when the
dispenser is first powered on and also following a reset.
See also:
LampOn Method
LampMask Method
LampMask Method
Turns on/off all lamps to match a bit
pattern.
Syntax C#
public Int16 LampMask( Int16 Lamp
Pattern )
public Int16 LampMask( Int16 Lamp
Pattern, Int32 Timeout )
Parameters
Lamp Pattern is an integer containing a bit mask describing which lamps are to
be on or off. Possible values are 0-15
for the one column controller and 0-255 for the multi column controller.
Timeout is an optional long integer that specifies the time in
milliseconds to wait for the command to complete. Default is 1000ms (1 second)
Return
|
0 |
Success |
|
1 |
Failure (should
not occur) |
|
2 |
Command
mismatch. This can occur if a previous
command timed-out, but completed after a new command was issued. |
|
3 |
Time out. The Timeout event will
occur prior to this status being returned. |
The lower bits of the Lamp Pattern
correspond to the digital outputs.
Bit 0 = lamp 1
Bit 1 = lamp 2
etc..
A one bit turns the lamp on, a zero
turns it off. For example:
0 = All
lamps off
255 = All
lamps on
5 = Lamps
0 and 2 on, all others off.
All lamps are turned off when the
dispenser is first powered on and also following a reset.
See also:
LampOn Method
LampOff Method
Shows a message on the 2x16 LCD
display starting in the first position on line 1.
Syntax C#
public Int16 LCDwrite( String Message
)
public Int16 LCDwrite( String Message,
Int32 Timeout )
Parameters
Message is a string of printable characters. The first 16 characters will display on the
first line of the display. Remaining
characters will display on the second line.
Timeout is an optional long integer that specifies the time in
milliseconds to wait for the command to complete. Default is 1000ms (1 second)
Return
|
0 |
Success |
|
1 |
Failure (should
not occur) |
|
2 |
Command
mismatch. This can occur if a previous
command timed-out, but completed after a new command was issued. |
|
3 |
Time out. The Timeout event will
occur prior to this status being returned. |
This method does not clear the
display so 16 or 32 character messages should be used if one or two lines are
to be completely replaced.
See also:
LCDwrite2 Method
LCDwrite2 Method
Shows a message on the 2x16 LCD
display starting in the first position on line 2.
Syntax C#
public Int16 LCDwrite2( String
Message )
public Int16 LCDwrite2( String
Message, Int32 Timeout )
Parameters
Message is a string of printable characters. The first 16 characters will display on the
second line of the display. Any
remaining characters will be ignored.
Timeout is an optional long integer that specifies the time in
milliseconds to wait for the command to complete. Default is 1000ms (1 second)
Return
|
0 |
Success |
|
1 |
Failure (should
not occur) |
|
2 |
Command
mismatch. This can occur if a previous
command timed-out, but completed after a new command was issued. |
|
3 |
Time out. The Timeout event will
occur prior to this status being returned. |
This method does not clear the
display so 16 character messages should be used if the line is to be completely
replaced.
See also:
LCDwrite Method
Timeout Event
Occurs when the dispenser doesn't
respond to a command before the timeout expires.
Syntax C#
public event TimeoutEventHandler
Timeout
EventArgs TimeoutEventArgs
Int32 Timeout
The time in milliseconds that was
exceeded.
PowerFailed Event
Occurs when the dispenser
resets. This can be caused by the power
to the dispenser falling out of tolerance or by pressing the manual reset
switch. It is not fired by the Reset
method.
Syntax C#
public
event PowerFailedEventHandler PowerFailed
EventArgs None
BillAccepted Event
Occurs when money is deposited in the
bill acceptor.
Syntax C#
public event
BillAcceptorEventHandler BillAccepted
EventArgs BillAcceptorEventArgs
Int32 BillValue
Represents the number of pulses received from the bill
acceptor. On most
See also:
GetCredits property
PeekCredits property
BillValue property
BillEnable Method
SwitchPress Event
Occurs when a momentary switch
connected to the controller is closed (connected to ground).
Syntax C#
public event
SwitchEventHandler SwitchPress
EventArgs SwitchEventArgs
Int16 switchNumber
Specifies the switch that was
pressed. Possible values are 1 to
12. On the one column controller
(PN:110-022) switches 5 through 8 are unavailable. Refer to the Controller Connections section
for more information.
See also:
SwitchEnable
Method
SwitchRelease Event
Occurs when a momentary switch connected
to the controller is opened.
Syntax C#
public
event SwitchEventHandler SwitchRelease
EventArgs SwitchEventArgs
Int16 switchNumber
Specifies the switch that was
released. Possible values are 1 to
12. On the one column controller
(PN:110-022) switches 5 through 8 are unavailable. Refer to the Controller Connections section
for more information.
See also:
SwitchEnable Method
ModeChange Event
Occurs when the value of the
"mode" inputs change.
Syntax C#
public
event ModeChangeEventHandler ModeChange
EventArgs ModeChangeEventArgs
Int16 modeSwitchValue
The decimal value of the mode
inputs. There are four mode input pins
that are combined to form a value in the range 0 through 15. Refer to the Controller Connections section
for more information.
See also:
I/O Connectors on the one column controller
J10 “Front Panel”
|
Pin # |
Type |
Name |
Description |
|
1 |
Power |
Gnd |
Logic ground |
|
2 |
Input |
Switch 1 |
Triggers SwitchPressed event when connected to
ground. |
|
3 |
Input |
Switch 2 |
Triggers SwitchPressed event when connected to
ground. |
|
4 |
Output |
Lamp 1 |
Sinks up to 500mA @ 50V*. |
|
5 |
Output |
Lamp 2 |
Sinks up to 500mA @ 50V*. |
|
6 |
Output |
Lamp 3 |
Sinks up to 500mA @ 50V*. |
|
7 |
Output |
Lamp 4 |
Sinks up to 500mA @ 50V*. |
|
8 |
Power |
+15V |
Power output. |
* Total power of all outputs should be limited to
1.0W
J12 “Bill Acceptor”
|
Pin # |
Type |
Name |
Description |
|
1 |
Input |
Billin |
Bill acceptor bill pulse input |
|
2 |
Power |
Gnd |
Logic ground |
|
3 |
Input |
Coinin |
Coin acceptor pulse input |
|
4 |
Power |
Gnd |
Logic ground |
|
5 |
Output |
Benable |
Bill acceptor enable |
|
6 |
Power |
+5V |
Power output. |
|
7 |
Input |
Billerr |
Bill acceptor error signal |
|
8 |
Power |
+15V |
Power output. |
No isolation is provided on this connector
J23 “Aux Controls”
|
Pin # |
Type |
Name |
Description |
|
1 |
Power |
Gnd |
Logic ground |
|
2 |
Input |
MD8 |
‘Mode switch’ bit 3 |
|
3 |
Input |
MD4 |
‘Mode switch’ bit 2 |
|
4 |
Input |
MD2 |
‘Mode switch’ bit 1 |
|
5 |
Input |
MD1 |
‘Mode switch’ bit 0 |
|
6 |
Input |
Switch 9 |
Triggers SwitchPressed event when connected to
ground. |
|
7 |
Input |
Switch 10 |
Triggers SwitchPressed event when connected to
ground. |
|
8 |
Input |
Switch 11 |
Triggers SwitchPressed event when connected to
ground. |
P1 “Option Jumpers”
|
Position |
Type |
Name |
Description |
|
A |
Input |
Switch 1 |
Triggers SwitchPressed event when closed. |
|
B |
Input |
Switch 2 |
Triggers SwitchPressed event when closed. |
|
C |
Input |
Switch 3 |
Triggers SwitchPressed event when closed. |
|
D |
Input |
Switch 4 |
Triggers SwitchPressed event when closed. |
|
E |
Input |
Switch 9 |
Triggers SwitchPresse |