DIGITAL INPUT/OUTPUT CARD

IOD-144

USER MANUAL

50

OUT BASEADDR+1,&HFF

 

'Turn on all Port B bits

60

OUT BASEADDR+2,&HF

 

'Turn on all bits of Port C Lo

SAMPLE PROGRAMS

The following sample programs are in TURBO-C and TURBO-PASCAL languages. They cover a security system that allows you to monitor the status of 16 switches and to automatically trigger four alarms that can be used to turn on lights, activate a siren, or send a signal to a silent alarm. The alarm system in this demonstration has four arming stations which toggle the alarm on or off. These programs are also provided on the diskette that ACCES supplied with your IOD card.

TURBO-PASCAL PROGRAM

CONST BASEADDR = $300;

{declare base address for IOD card}

CONST ON

= 1;

{declare some useful constants}

CONST OFF

= 0;

{ "

"

"

"

}

TYPE sensor_array = array[0..15] of integer;

{creates a type of variable used for}

 

{ sensor data}

 

 

 

VAR sensors_at_arm : sensor_array;

{bit-by-bit status of sensors when alarm is

{activated. Used to notify user of open windows, etc}

VAR sensors_now : sensor_now;

{bit-by-bit status of sensors at current time. When}

 

{compared against sensors_at_arm, indicates}

 

{ break-in if there is a change.}

 

 

VAR arming_stations : integer;

{variables representing all four arming stations}

VAR old_arming_stations: integer; {If value changes toggle alarm on/off}

 

VAR hour, min., sec., hun. : word; {variables used to retrieve time}

 

VAR key : char;

{useful temporary variable}

 

 

VAR i : integer;

{useful temporary variable, used in loops}

VAR j : integer;

{

"

"

"

" "

" }

procedure initialize_board;

{this procedure sets MODE 0 as active and sets}

 

{and sets Port A, B, and C LO as input and Port }

begin

{C HI as output}

 

 

 

 

 

 

 

 

 

port[BASEADDR+3] :=$93;

{port[X] is Pascal's method of accessing the port}

 

{memory. This code sets the port memory at}

 

{address 303 hex, and the control register, to 93}

 

{hex because the bit pattern to set the desired}

 

{mode and port designations is 10010011 which}

 

{equals 93 hex}

 

 

 

end; {procedure initialize_board}

procedure read_sensors(VAR ary:sensor_ary);

VAR tempA : byte;

{this procedure fetches data from Ports A }

VAR tempB : byte;

{and B and returns a binary representation}

6-5

Page 18
Image 18
Access IOD-144 user manual Sample Programs

IOD-144 specifications

Access IOD-144 is a cutting-edge device that has garnered significant attention within the field of connectivity solutions. Designed primarily for industrial applications, the IOD-144 is an Internet of Things (IoT) gateway that facilitates seamless communication between devices and applications in a robust and reliable manner. This device is particularly suited for environments that require real-time data processing and monitoring, making it an ideal choice for sectors like manufacturing, transportation, and smart cities.

One of the standout features of the Access IOD-144 is its versatility in supporting multiple connectivity options. It is equipped to handle various protocols, including Ethernet, Wi-Fi, Bluetooth, and cellular networks. This broad support ensures that users can choose the most suitable connectivity method based on their specific requirements and existing infrastructure. The device's ability to adapt to different network environments enhances its utility in diverse operational settings.

In terms of processing power, the IOD-144 prides itself on having a powerful microprocessor, allowing it to perform complex computations and data processing locally. This edge computing capability reduces latency by enabling real-time data analysis and decision-making without the need to constantly communicate with a cloud service. As a result, businesses benefit from faster response times and reduced bandwidth costs.

Moreover, the Access IOD-144 is designed with scalability in mind. It can support an extensive array of sensors and actuators, making it an ideal solution for organizations looking to expand their IoT ecosystems over time. The device can easily integrate with various third-party applications and platforms, ensuring compatibility and allowing for future growth.

Security is another key focus of the IOD-144. With built-in encryption protocols and secure authentication methods, the device helps to safeguard data transmitted across networks. This emphasis on security is crucial, particularly in industrial settings where data breaches can have severe consequences.

Additional features of the Access IOD-144 include user-friendly management software that simplifies deployment, monitoring, and maintenance of connected devices. The device also supports over-the-air firmware updates, ensuring that users can keep their systems up-to-date with the latest features and security enhancements.

In summary, the Access IOD-144 stands out due to its multifaceted connectivity options, powerful processing capabilities, scalability, robust security measures, and user-friendly management tools. These characteristics make it a leading choice for businesses looking to enhance their IoT capabilities while ensuring reliable performance in challenging environments.