How Do I Write to the 24 Additional Digital Lines on a ValueMotion Board? Primary Software: Motion AssistantPrimary Software Version: 1.0 Primary Software Fixed Version: N/A Secondary Software:
Problem: Where can I find the functions to write to the 24 additional digital lines on a ValueMotion Board? Solution: There are two files that define the names for all the functions: pcmotion32.h and pcrunner32.bas. The name of the functions are: read_gpio and set_gpio. GPIO is General Purpose I/O. If you look in the ValueMotion documentation for LabVIEW, the name of the functions are: Read 24 DIO port and Set 24 DIO lines. To use the 24-bit digital I/O, use the following commands: read_gpio(u8 boardID, u32 *iodataptr), - Reads the 24-bit I/O data set_gpio(u8 boardID, u32 data), - Sets the data for the 24-bit I/O set_portc_dir(u8 boardID, u8 dir); - Sets the direction of port C. Also pcRunner (Release 1 and later of the ValueMotion Software) has user panels that let you configure the 24-bit digital I/O for Stepper boards. They are located under the Functions >> Stepper menu in pcRunner. Related Links: Default Power-Up States of the ValueMotion Stepper Controllers Auxiliary Digital Inputs Attachments:
Report Date: 04/01/1998 Last Updated: 04/16/2004 Document ID: 180A9H5P |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
