Esp_Get_Portabc_Dir - Newport ESP6000 User Manual

Motion controller/driver
Table of Contents

Advertisement

esp_set_portabc_dir Set Digital I/O Port A,B, & C Direction
esp_get_portabc_dir Report Digital I/O Port A,B, & C Direction Setting
Synopsis:
Arguments:
Library Location:
Description:
Returns:
Usage Example:
See Also:
5-100
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
#include "esp6000.h"
int esp_set_portabc_dir(long a, long b, long c)
int esp_get_portabc_dir(long *a, long *b, long *c)
long a, b, c
port direction (1)PORT_OUTPUT or (0)PORT_INPUT
\esp6000.dll
esp_set_portabc_dir() defines digital I/O port direction. Digital I/O ports are located on
both auxiliary I/O and digital I/O connectors on the controller card.
esp_get_portabc_dir() reports present port configuration.
Port A DIO signals are externally pulled-up via a 4.7KΩ resister to +5 volts.
After system reset Ports A, B, and C are automatically configured as inputs.
ESPOK, ESPERROR
Hint:
Define port direction with esp_set_portabc_dir() before using this function.
#include "esp6000.h"
main()
{
if (!esp_init_system()) exit(-1);
/* Configure Ports A, B, C Directions */
esp_set_portabc_dir(PORT_OUTPUT, PORT_INPUT, PORT_INPUT);
/* Set DIO_A Port */
esp_set_dio_porta(long 0x0FF);
}
esp_get_dio_porta(), esp_get_dio_portb(), esp_get_dio_portc(),
NOTE

Advertisement

Table of Contents
loading

This manual is also suitable for:

Unidrive6000

Table of Contents