IoDrvHilscher.CIFIsDevFlagSet (METH) ¶ METHOD CIFIsDevFlagSet : BOOL InOut: Scope Name Type Return CIFIsDevFlagSet BOOL Input Flag BYTE
MBConstants (GVL) ¶ InOut: Scope Name Type Initial Comment Constant MAX_CHANNELS UINT 10 Pool of available Channels for each Slave MAX_REGISTERS UINT 100 Pool of available Registers shared among the available Channels (not used currently) MAX_SLAVES UINT 32 Pool of MB Serial Slaves MAX_BUFFER_WORDS UINT (MAX_SLAVES * 128) READ and WRITE Buffer size MAX_INITS UINT 20 Pool of initialisation values for each Slave that get entered on the “Slave Init Page” MODULE_TYPE_MB_MASTER WORD 90 Device type IDs MODULE_TYPE_MB_SLAVE WORD 91 MODULE_TYPE_MB_PORT WORD 92 MODULE_TYPE_M238_SL1 WORD 40101 MODULE_TYPE_M238_SL2 WORD 40102 PARAM_ID_BAUDRATE UINT 9200 Port Parameter IDs as read from Modbus Configurator PARAM_ID_MEDIUM UINT 9201 PARAM_ID_PARITY UINT 9202 PARAM_ID_DATABITS UINT 9203 PARAM_ID_STOPBITS UINT 9204 PARAM_ID_TRANSMISSION UINT 9000 Master Parameter IDs as read from Modbus Configurator PARAM_ID_RESPONSETIMEOUT UINT 9001 PARAM_ID_TIMEBETWEENFRAMES UINT 9002 PARAM_ID_SERIALLINE UINT 9003 PARAM_ID_SLAVEADDRESS UINT 9100 Slave Parameter IDs as read from Modbus Configurator PARAM_ID_SLAVETIMEOUT UINT 9101 PARAM_ID_FIRST_ITEM_ID UINT 9300 PARAM_ID_DEFAULTVALUES UINT 7100 FIRST_CYCLE USINT 0 Commands for the state machines of the FBs INIT_VALUES USINT 1 IDLE USINT 66 TRANSMISSION_RTU USINT 0 Static identifiers TRANSMISSION_ASCII USINT 1 PARITY_EVEN USINT 2 PARITY_ODD USINT 3 PARITY_NONE USINT 4 TRIGGER_CYCLIC USINT 5 TRIGGER_RISING_EDGE USINT 6 MEDIUM_RS232 USINT 7 MEDIUM_RS485 USINT 8 MEDIUM_ETH USINT 9 ACCESS_READ USINT 10 ACCESS_READWRITE USINT 11 ACCESS_WRITE USINT 12 ACCESS_WRITE_SPLITTED USINT 13 Used if a device does not support READWRITE ACCESS_READ_SPLITTED USINT 14 Used if a device does not support READWRITE REGISTER_INPUT_BIT USINT 10 BIT register for read access REGISTER_COILS_BIT USINT 11 BIT register for read/write access REGISTER_INPUT_WORDS USINT 12 WORD register for read/write access REGISTER_HOLDING_WORDS USINT 13 WORD register for read access CLASSID_CCmpIoDrvModbusSerial DWORD 16#1008 Used for the logger to identify messages from the IoDrvModbus CLASSID_LOGGER UDINT 1 LIBRARY_VERSION UDINT 16#3030002
IoDrvModbusSerial (FB) ¶ FUNCTION_BLOCK IoDrvModbusSerial EXTENDS IoDrvModbusBase.IoDrvModbusBase InOut: Scope Name Type Initial Input xStop BOOL FALSE Output uiNumberOfCommunicatingSlaves UINT 0 xAllSlavesOk BOOL FALSE
MBGlobalVariables (GVL) ¶ InOut: Name Type Initial g_uiNumberOfSlaves UINT 0 g_xSystemHasIntelByteOrder BOOL TRUE
ModbusSerialMaster (FB) ¶ FUNCTION_BLOCK ModbusSerialMaster EXTENDS IoDrvModbusBase.ModbusSerialMasterBase Methods: DoModbusRequests Structure: DoModbusRequests (Method)
ModbusSerialMaster.DoModbusRequests (METH) ¶ METHOD DoModbusRequests InOut: Scope Name Type Input bIsStartCycle BOOL
ModbusSerialPort (FB) ¶ FUNCTION_BLOCK ModbusSerialPort InOut: Scope Name Type Initial Output usiLinkNumber USINT 1
ModbusSerialSlave (FB) ¶ FUNCTION_BLOCK ModbusSerialSlave EXTENDS IoDrvModbusBase.ModbusSerialSlaveBase InOut: Scope Name Type Initial Comment Output byCommError BYTE 0 Specifies the current error as defined in the “MB_CommCode_M238” enumeration dwOperError DWORD 0 Specifies the current error as defined in the “MB_OpCode_M238” enumeration
Structs ¶ MBChannel_HighMem (Struct) MBMasterParameter (Struct) MBPortParameter (Struct) MBRegister (Struct) MBSlaveParameter (Struct) MB_CommCode_M238 (Enum) MB_OpCode_M238 (Enum) ModbusCommand (Struct) PARAM_ACCESS (Enum) PARAM_MEDIUM (Enum) PARAM_PARITY (Enum) PARAM_TRANSMISSION (Enum) PARAM_TRIGGER (Enum)
MBChannel_HighMem (STRUCT) ¶ TYPE MBChannel_HighMem : STRUCT This STRUCT matches the data structure that gets read from the config file. As it contains unimportant information like name and comment, it is just used as a single temporary storage before the data gets converted to the leaner version MBChannel InOut: Name Type Initial Comment tCycleTime TIME TIME#100ms Inteval in which the channel is triggered (in case of CYCLIC) uiReadOffset UINT 16#0 First Modbus register to read uiReadLength UINT 1 Number of subsequent register to read, in HEX uiWriteOffset UINT 16#0 First Modbus register to write, in HEX uiWriteLength UINT 1 Number of subsequent register to write stName STRING ‘0123456789’ Name for the particular channel stAccess STRING ‘READWRITE’ READ (FC 0x03), WRITE (FC 0x10) or READWRITE (FC 0x17) stTrigger STRING ‘CYCLIC’ CYCLIC or RISING_EDGE stChannelComment STRING ‘EMPTY’ Channel commment editable by user stKeepLastValue STRING ‘TRUE’