Remote Technologies RPC-320 manual Config Line, Line B, Line #, On Count, On Line, Pwm

Page 29

DIGITAL AND OPTO PORTS

SECTION 6

COMMANDS

The following tables shows the RPBASIC-52 comm ands used for digital I/O.

Comm and

Function

CONFIG LINE

Configu res I/ O por ts

COUNT

Returns number of pulses at a line.

LINE

Function retur ns status of an opto

 

module as a 0 or 1.

LINE

Statemen t turns on or off an opto

 

module.

LINE B

Function returns 8 data bits from any

 

I/O type device.

LINE B

Statement writes 8 data bits to any I/O

 

type device.

LINE #

Function re turns status of line at J3

 

connector as a 0 or 1.

LINE #

Statement wr ites data to a line at J3

 

connector as a 0 or 1.

ON COUNT

Counts pulses and optional generates an

 

interr upt.

ON LINE

Generates an interrupt when a line

 

changes.

PWM

Sets PWM param eters for any line.

Page 6-7 RPC -320

Image 29
Contents Revision REVTrademarks Table of Contents External Reset Sect ION 11 Watchdog Timer DescriptionInterrupt Characteristics Sect ION 13 Multi Mode Counter DescriptionSoftware Revision History Section OverviewDescription Manual OrganizationTechnical Support Symbols and Term inologySystem layout Overview SectionEquipment Operating PrecautionsIntroduction Using a Terminal Using a PCFirst Time Operation Uploading and Downloading ProgramsEditing programs and program ming hints Troubleshooting Where to GO from HereSaving a Program Saving ProgramsEprom W3 autorun jumperPreventing Autorun AutorunningLoading a Program Changing Eprom SizeAlternate Eproms CommandsBload BsaveCOM1 Serial Port Serial PortsCOM0 Serial Port RS-422/485 Termination network Serial Ports SectionRS-422/485 Operating Information Multidrop Network Accessing Serial BuffersTwo wire RS-485 Serial Port PIN OUT Accessing COM0 and COM1Disabling CONTROL-C RXD CTS Checking the battery Battery BackupRAM Memory Changing MemoryStoring Variables in RAM Reserved MemoryBlock Data Transfer Assembly Language InterfaceDigital Por t J3 Digital and Opto PortsDigital I/O Ports Digital Port P6 Digital I/O CommandsHigh Current Port L8 Optically Isolated InputHigh Current Output Digital I/ O prog ramm ing exam ple Interfacing to switches and other devicesInterfacing Digital I/O to an opto-module rack Ls e Width Modulation PWM Conne ctor pin ou t J3 Digital and Opto Ports SectionCount Config LineLine Line BM E Setting Date and TimeDate Section Programming Example Connecting DisplaysWriting to the Display Display Types Display Connector PIN OUTProgram explanation Keypad PortKeypad Port PIN OUT J5 Analog Input Connecting Analog InputsInitialization Overvoltage conditionsAcquiring Analog Data Differential ModeExamples u sing CON FIG AIN Noise Notes Temperature MeasurementAnalog Input Section Measuring Higher Voltages Data logging on a timer tickMeasuring 4-20 mA current loops Converting Analog MeasurementsAmplifiers Calibration External Reset Watchdog TimerProgram Example Interrupt CharacteristicsOptically Isolated Interrupt Optically isolated and TTL interrup ts GND ProgrammingLoad GateCOU NT0 Further Power Reduction Power ManagementProgram Examp le Power Management SectionTechnical Information Electrical SpecificationsMemory and I/O Bank MAP Mechanical SpecificationsJumper Descriptions Bank