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

From Flowcode Help
Jump to navigationJump to search
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

Fc9-comp-macro.png InputANALOG_10Bit
Returns the 10 bit value for the analogue input requested by parameter InputID (Inputs 1 to 8)  
Fc9-u8-icon.png - BYTE InputID
The input to read from 1 to 8. 
Fc9-s16-icon.png - INT Return


Fc9-comp-macro.png RelayOFF
Turns off the requested relay given by parameter RelayID, values 1 to 4 
Fc9-u8-icon.png - BYTE RelayID
The relay to turn off. From 1 to 4. 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png PrintString
Prints the given character string to the display at the current cursor position and moves the cursor position. 
Fc9-string-icon.png - STRING Str
The string to send to the display. 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png GetKeypad
Returns the key code of the key that is pressed, otherwise if nothing is pressed then returns 255 
Fc9-u8-icon.png - BYTE Return


Fc9-comp-macro.png DisplayStart
Initialise the display ready for use 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png DisplayCommand
Sends the given command to the display 
Fc9-u8-icon.png - BYTE Cmd
 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png PrintASCII
Prints the given character to the display at the current cursor position and increments the cursor position. 
Fc9-u8-icon.png - BYTE Char
ASCII code of the character to print. 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png PrintNumber
Prints the given number to the display starting at the current cursor position and moves the cursor position. 
Fc9-s16-icon.png - INT n
 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png MIAC_Module_SetData
 
Fc9-u8-icon.png - BYTE Count
 
Fc9-u8-icon.png - BYTE D0
 
Fc9-u8-icon.png - BYTE D1
 
Fc9-u8-icon.png - BYTE D2
 
Fc9-u8-icon.png - BYTE D3
 
Fc9-u8-icon.png - BYTE D4
 
Fc9-u8-icon.png - BYTE D5
 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png 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 
Fc9-u32-icon.png - ULONG Number
Enter the number or variable to print to the LCD 
Fc9-bool-icon.png - BOOL Format
0=Signed, 1=Unsigned 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png MIAC_Module_Init
 
Fc9-u16-icon.png - UINT CAN_ID
 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png MIAC_Module_GetData
 
Fc9-u8-icon.png - BYTE Index
 
Fc9-u8-icon.png - BYTE Return


Fc9-comp-macro.png MIAC_Module_Message
 
Fc9-u16-icon.png - UINT CAN_ID
 
Fc9-u16-icon.png - UINT CMD_ID
 
Fc9-u8-icon.png - BYTE Return


Fc9-comp-macro.png DisplayClear
Clears the display to white space 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png MIAC_Module_WR
 
Fc9-u16-icon.png - UINT CAN_ID
 
Fc9-u16-icon.png - UINT CMD_ID
 
[[File:]] - Count
 
[[File:]] - Start
 
[[File:]] - More
 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png MIAC_Module_PushData
 
Fc9-u8-icon.png - BYTE Data
 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png OutputOFF
Outputs a digital low state on the output requested by parameter TransID (Outputs 1 to 4)  
Fc9-u8-icon.png - BYTE TransID
1 to 4 (Outputs A to D) 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png RelayON
Turns on the requested relay given by parameter RelayID, values 1 to 4 
Fc9-u8-icon.png - BYTE RelayID
The relay to turn on from 1 to 4. 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png 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.  
Fc9-u8-icon.png - BYTE x
Position of the cursor in characters from left to right. 
Fc9-u8-icon.png - BYTE y
The line to move the cursor to. 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png OutputON
Outputs a digital high state on the output requested by parameter TransID (Outputs 1 to 4)  
Fc9-u8-icon.png - BYTE TransID
1 to 4 (Outputs A to D) 
Fc9-void-icon.png - VOID Return


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


Fc9-comp-macro.png MIAC_Module_GetAck
 
Fc9-u16-icon.png - UINT CAN_ID
 
Fc9-u16-icon.png - UINT CMD_ID
 
Fc9-u16-icon.png - UINT TimeOut
 
Fc9-u8-icon.png - BYTE Return


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



Property reference

Fc9-prop-icon.png Properties
Fc9-type-16-icon.png Module Type
 
Fc9-type-16-icon.png Module Address
 
Fc9-conn-icon.png Connections
Fc9-conn-icon.png Simulations