Jump to content

Component: MIAC Industrial (MIAC: Addon Modules)

From Flowcode Help
Revision as of 14:21, 13 July 2026 by SteveT (talk | contribs) (Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;"" to "width="10%" align="center" class="mtx-class-macrohead"")
Author
Version 1.0
Category MIAC: Addon Modules


MIAC Industrial component

MIAC Industrial Addon component for MIAC System. Add (WIZ810MJ) TCP/IP or Webserver component to the panel to add functionality.

Component Source Code

Please click here to download the component source project: FC_Comp_Source_ma_industrial.fcfx

Please click here to view the component source code (Beta): FC_Comp_Source_ma_industrial.fcfx

Detailed description

No detailed description exists yet for this component

Examples

No additional examples







Macro reference

AnalogInput

AnalogInput
Read the ADC value of a Terminal Returns 12 bit ADC reading 
- BYTE Terminal
Terminal number to be read 
- UINT Return


DigitalInput

DigitalInput
Read the value of a terminal  
- BYTE Terminal
 
- BYTE Return


DigitalOutput

DigitalOutput
Set a Terminal Output to High (Value=1) or Low (Value=0) 
- BYTE Terminal
 
- BYTE Value
 
- BYTE Return


Initialize

Initialize
Forces a software reset on the module 
- VOID Return


LED_Control

LED_Control
Sets the indicator LED On (State=1) or Off (State=0) 
- BYTE State
 
- VOID Return


MIAC_Module_GetAck

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


MIAC_Module_GetData

MIAC_Module_GetData
 
- BYTE Index
 
- BYTE Return


MIAC_Module_Init

MIAC_Module_Init
 
- UINT CAN_ID
 
- VOID Return


MIAC_Module_Message

MIAC_Module_Message
 
- UINT CAN_ID
 
- UINT CMD_ID
 
- BYTE Return


MIAC_Module_PushData

MIAC_Module_PushData
 
- BYTE Data
 
- VOID Return


MIAC_Module_RD

MIAC_Module_RD
 
- UINT CAN_ID
 
- UINT CMD_ID
 
[[File:]] - Return


MIAC_Module_SetData

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


MIAC_Module_WR

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


RS485_Initialize

RS485_Initialize
Initialize the parameters for the RS485 communication channel 
- BYTE DataSize
Bit width, 8 or 9 bits 
- INT BaudRate
 
- UINT Return


RS485_Receive

RS485_Receive
Wait up to Timeout (mS) for a character to be received. Returns the character if successful, otherwise: 0x8000 Unexpected acknowledgment ID 0xa000 Insufficient data in acknowledgment 0xc000 Unexpected CAN ID acknowledgment 0xe000 Timeout, nothing received  
- UINT Timeout
Timeout in mS 
- UINT Return


RS485_Send

RS485_Send
Send a character to RS485. Returns 0 for successful acknowledgment, otherwise: 0x8000 Unexpected acknowledgment ID 0xa000 Insufficient data in acknowledgment 0xc000 Unexpected CAN ID acknowledgment 0xe000 Timeout, no acknowledgment received  
- INT Char
 
- UINT Return


Property reference

Properties
Module Type
 
Module Address