Jump to content

Component: MIAC (PIC) CAN Slave (MIAC: Addon Modules)

From Flowcode Help
Revision as of 14:23, 13 July 2026 by SteveT (talk | contribs) (Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead"")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Author Matrix Ltd
Version 1.4
Category MIAC: Addon Modules


MIAC (PIC) CAN Slave component

MIAC Slave for MIAC System. Requires Slave firmware program downloaded to a MIAC (PIC) to act as a CAN connected Slave device.

Component Pack

FREE

Detailed description

No detailed description exists yet for this component

Examples

No additional examples


Downloadable macro reference

InputANALOG_10Bit
Returns the 10 bit value for the analogue input requested by parameter InputID (Inputs 1 to 8)  
- BYTE InputID
The input to read from 1 to 8. 
- INT Return


RelayOFF
Turns off the requested relay given by parameter RelayID, values 1 to 4 
- BYTE RelayID
The relay to turn off. From 1 to 4. 
- VOID Return


PrintString
Prints the given character string to the display at the current cursor position and moves the cursor position. 
- STRING Str
The string to send to the display. 
- VOID Return


GetKeypad
Returns the key code of the key that is pressed, otherwise if nothing is pressed then returns 255 
- BYTE Return


DisplayStart
Initialise the display ready for use 
- VOID Return


DisplayCommand
Sends the given command to the display 
- BYTE Cmd
 
- VOID Return


PrintASCII
Prints the given character to the display at the current cursor position and increments the cursor position. 
- BYTE Char
ASCII code of the character to print. 
- VOID Return


PrintNumber
Prints the given number to the display starting at the current cursor position and moves the cursor position. 
- INT n
 
- VOID Return


MIAC_Module_SetData
 
- BYTE Count
 
- BYTE D0
 
- BYTE D1
 
- BYTE D2
 
- BYTE D3
 
- BYTE D4
 
- BYTE D5
 
- VOID Return


PrintFormattedNumber
Will allow you to print a number up to 32-bits with signed or unsigned formatting. Signed = -2147483648 to 2147483647 Unsigned = 0 to 4294967295 
- ULONG Number
Enter the number or variable to print to the LCD 
- BOOL Format
0=Signed, 1=Unsigned 
- VOID Return


MIAC_Module_Init
 
- UINT CAN_ID
 
- VOID Return


MIAC_Module_GetData
 
- BYTE Index
 
- BYTE Return


MIAC_Module_Message
 
- UINT CAN_ID
 
- UINT CMD_ID
 
- BYTE Return


DisplayClear
Clears the display to white space 
- VOID Return


MIAC_Module_WR
 
- UINT CAN_ID
 
- UINT CMD_ID
 
[[File:]] - Count
 
[[File:]] - Start
 
[[File:]] - More
 
- VOID Return


MIAC_Module_PushData
 
- BYTE Data
 
- VOID Return


OutputOFF
Outputs a digital low state on the output requested by parameter TransID (Outputs 1 to 4)  
- BYTE TransID
1 to 4 (Outputs A to D) 
- VOID Return


RelayON
Turns on the requested relay given by parameter RelayID, values 1 to 4 
- BYTE RelayID
The relay to turn on from 1 to 4. 
- VOID Return


DisplayCursor
Moves the display cursor to the given position. If the cursor is set to the origin at x=0, y=0, then the next character sent to the display will appear in the top left corner.  
- BYTE x
Position of the cursor in characters from left to right. 
- BYTE y
The line to move the cursor to. 
- VOID Return


OutputON
Outputs a digital high state on the output requested by parameter TransID (Outputs 1 to 4)  
- BYTE TransID
1 to 4 (Outputs A to D) 
- VOID Return


InputDIGITAL
Returns the digital state of the input requested by parameter InputID (Inputs 1 to 8)  
- BYTE InputID
The input number from 1 to 8. 
- BYTE Return


MIAC_Module_GetAck
 
- UINT CAN_ID
 
- UINT CMD_ID
 
- UINT TimeOut
 
- BYTE Return


InputANALOG
Returns the 8 bit value for the analogue input requested by parameter InputID (Inputs 1 to 8) 
- BYTE InputID
The input to read from 1 to 8. 
- BYTE Return



Property reference

Properties
Module Type
 
Module Address
 
Connections
Simulations