CLICK HERE FOR INDEX PAGE

PROGRAM COMMANDS

V. Ryan 2002

 

Below are some of the commands that can be programmed using a programming module or computer software and stored on a smartcard

   

COMMAND

MEANING

   
high 1 turns on output 1
high 2 turns on output 2

high 3

Etc......

turns on output 3

low 1

Etc.....

turns off output 1
wait 1  (can be set from 00 to 99)

pauses the program for 1/10th of a second.

goto 03 (smart card can have up to 99 lines) go to line 3
if _L if output 1 is low
if L_ if output 2 is low
if LL if output 1 and output 2 are low
if _H if output 1 is high
if H_ if output 2 is high
if HH if output 1 and 2 are high

if LH

Etc......

if output 1 is high and output 2 is low
out  (see table below for more detail)

switches all output off or on at the same time.

 

 

The OUT Command

   

The OUT command can be used to switch all the outputs on or ff at the same time or it can be followed by a number. The table below gives the number that follows the OUT command that can be used to control outputs 1 to 6.

   
OUTPUT 6 5 4 3 2 1

NUMBER

32 16 8 4 2 1
   
For Example:
OUT 63 switch on all outputs
OUT 00 switch off all outputs
OUT 4 switches on output 3
   

Example Program

 
COMMAND MEANING
00 IF _H HIGH 1 If input 1 is high turn on output 1
01 WAIT 25 Wait 25 (25 1/10ths of a second)
02 LOW 1 Turn off output1
03 WAIT 25 Wait 25 (25 1/10ths of a second)
04 HIGH 3 Turn on output 3
05 WAIT 25 Wait 25 (25 1/10ths of a second)
06 LOW 3 Turn off output 3
06 GOTO 00 Go to the start
   

Write a simple program to turn on a series of output LEDs. The two inputs must turn on or off some of the outputs. Use a range of commands.

   

 

   

CLICK HERE FOR SMARTCARD INDEX PAGE

 
 
Google
 
Web www.technologystudent.com