Component: MIAC AllCode API (dsPIC) (AllCode)
From Flowcode Help
Jump to navigationJump to searchAuthor | Matrix TSL |
Version | 1.1 |
Category | AllCode |
Contents
MIAC AllCode API (dsPIC) component
MIAC AllCode. dsPIC version of the MIAC loaded with the AllCode firmware. Usefull for SCADA, Control or Test applications. Allows you to control the MIAC using the programming language of choice. Compatible with simulation / Bluetooth / Wifi / RS232 and RS485
Component Pack
FREE
Detailed description
No detailed description exists yet for this component
Examples
Bluetooth based examples.
WIFI based examples.
USB Driver
Downloadable macro reference
![]() |
CommsWrite |
Writes a byte to the alt communications channel | |
![]() |
Data |
Range: 0-255 | |
![]() |
Return |
![]() |
WriteTrans |
Allows all transistor outputs to be switched on or off in a single command. | |
![]() |
Value |
Range: 0-15 or 0b0000 to 0b1111 | |
![]() |
Return |
![]() |
LCDPixel |
Controls a single pixel on the MIAC display | |
![]() |
X |
Range: 0-119 | |
![]() |
Y |
Range: 0-49 | |
![]() |
State |
Range: 0-1 | |
![]() |
Return |
![]() |
CardCreate |
Attempts to create a specific file on the card. Returns 0 for success, 255 for no card or error. | |
![]() |
Filename |
![]() |
Return |
![]() |
CardDelete |
Attempts to delete a specific file on the card. Returns 0 for success, 255 for no card or error. | |
![]() |
Filename |
![]() |
Return |
![]() |
LCDBitmap |
Draws a bitmap file from the SD card onto the MIAC display | |
![]() |
X |
Range: 0-119 | |
![]() |
Y |
Range: 0-49 | |
![]() |
Filename |
Range: 0-1 | |
![]() |
Return |
![]() |
GetAPIVersion |
Gets the API version of the Robot ARM Firmware | |
![]() |
Return |
![]() |
LCDNumber |
Prints a number to the MIAC display starting from the current cursor position. | |
![]() |
Value |
Range: -32678 - 32767 | |
![]() |
Return |
![]() |
CardInserted |
Checks to see if a card is present. Returns 0 for no card or 1 for card detected | |
![]() |
Return |
![]() |
ReadRTC |
Reads a value from the real time clock module. Used for getting the time or date. | |
![]() |
Unit |
0=Second 1=Minute 2=Hour 3=Day 4=Month 5=Year | |
![]() |
Return |
![]() |
CardOpen |
Attempts to open a specific file from the card. Returns 0 for file found and opened, 239 for file not found and 255 for no card. | |
![]() |
Filename |
![]() |
Return |
![]() |
CommsRead |
Reads a byte from the alt communications channel | |
![]() |
Timeout |
Range: 0-255 : 0 = Don't wait / 1-255 = ms | |
![]() |
Return |
![]() |
ReadKey |
Reads a keypress from the keypad. | |
![]() |
Return |
![]() |
WriteRTC |
Writes a value to the real time clock module. Used for setting the time or date. | |
![]() |
Unit |
0=Second 1=Minute 2=Hour 3=Day 4=Month 5=Year | |
![]() |
Value |
![]() |
Return |
![]() |
LCDBacklight |
Controls the brightness of the LCD backlight. | |
![]() |
Brightness |
Range: 0-100 | |
![]() |
Return |
![]() |
WriteRelay |
Allows a single relay to be switched on or off. | |
![]() |
Channel |
Range 1-4 | |
![]() |
Value |
0 = Off, 1 = On | |
![]() |
Return |
![]() |
LCDPrint |
Prints a string to the MIAC display starting from the current cursor position. | |
![]() |
data |
Range: 0-21 | |
![]() |
Return |
![]() |
LCDLine |
Draws a single pixel width line on the MIAC display | |
![]() |
X1 |
Range: 0-119 | |
![]() |
Y1 |
Range: 0-49 | |
![]() |
X2 |
Range: 0-119 | |
![]() |
Y2 |
Range: 0-49 | |
![]() |
Return |
![]() |
ReadInputs |
Reads all digital inputs at once and returns as a binary value. Input 1 = Bit 0 Input 8 = Bit 7 | |
![]() |
Return |
![]() |
CardReadByte |
Reads a byte from the open file. | |
![]() |
Return |
![]() |
WriteRelays |
Allows all relays to be switched on or off in a single command. | |
![]() |
Value |
Range: 0-15 or 0b0000 to 0b1111 | |
![]() |
Return |
![]() |
CardWriteByte |
Appends a byte to the end of the open file. Returns 0 for success. | |
![]() |
data |
![]() |
Return |
![]() |
LCDRect |
Draws a single pixel rectangle on the MIAC display | |
![]() |
X1 |
Range: 0-119 | |
![]() |
Y1 |
Range: 0-49 | |
![]() |
X2 |
Range: 0-119 | |
![]() |
Y2 |
Range: 0-49 | |
![]() |
Return |
![]() |
ReadAnalogInput |
Reads a single digital input. | |
![]() |
Channel |
![]() |
Return |
![]() |
CommsBaud |
Sets the Baud rate of the alt communications channel | |
![]() |
Baud |
Range: 0-7 : 0=1200 / 7=115200 | |
![]() |
Return |
![]() |
LCDOptions |
Controls some of the LCD options | |
![]() |
Foreground |
Range: 0-1 | |
![]() |
Background |
Range: 0-1 | |
![]() |
Transparent |
Range: 0-1 | |
![]() |
Return |
![]() |
ReadDigitalInput |
Reads a single digital input. | |
![]() |
Channel |
![]() |
Return |
![]() |
PWMDuty |
Sets a single PWM channel duty. Channel = 0 - 5 : 0=EN_AB, 1=A, 2=B, 3=C, 4=D, 5=EN_CD Duty = 0 - 65535 | |
![]() |
Channel |
Range 0-5 | |
![]() |
Duty |
![]() |
Return |
![]() |
LCDCursor |
Sets the cursor position for the MIAC display | |
![]() |
X |
Range: 0-21 | |
![]() |
Y |
Range: 0-4 | |
![]() |
Return |
![]() |
WriteTran |
Allows a single transistor output to be switched on or off. | |
![]() |
Channel |
Range 1-4 | |
![]() |
Value |
0 = Off, 1 = On | |
![]() |
Return |
![]() |
LCDClear |
Clears the MIAC display | |
![]() |
Return |
Property reference
![]() |
Properties |
![]() |
Connections |
![]() |
Operating Mode |
![]() |
API Connection Type |
API connection mode. COM - Bluetooth / RS232 / RS485 WIFI - Network | |
![]() |
Auto Detect |
![]() |
Baud |