Library Reference ¶ This is a dictionary of all referenced libraries and their name spaces. Base Interfaces ¶ Library Identification ¶ Name: Base Interfaces Version: newest Company: System Namespace: IBaseLibrary Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: Base Interfaces, * (System) CmpErrors2 Interfaces ¶ Library Identification ¶ Name: CmpErrors2 Interfaces Version: newest Company: System Namespace: CmpErrors Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: CmpErrors2 Interfaces, * (System) CmpLog ¶ Library Identification ¶ Placeholder: CmpLog Default Resolution: CmpLog, * (System) Namespace: CmpLog Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: CmpLog Component Manager ¶ Library Identification ¶ Placeholder: Component Manager Default Resolution: Component Manager, * (System) Namespace: Component_Manager Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: Component Manager IoDrvBase ¶ Library Identification ¶ Placeholder: IoDrvBase Default Resolution: IoDrvBase, * (System) Namespace: IoDrvBase Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: IoDrvBase IoStandard ¶ Library Identification ¶ Placeholder: IoStandard Default Resolution: IoStandard, * (System) Namespace: IoStandard Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: IoStandard Standard ¶ Library Identification ¶ Placeholder: Standard Default Resolution: Standard, * (System) Namespace: Standard Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: Standard SysCpuHandling ¶ Library Identification ¶ Placeholder: SysCpuHandling Default Resolution: SysCpuHandling, * (System) Namespace: SysCpuHandling Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: SysCpuHandling SysMem ¶ Library Identification ¶ Placeholder: SysMem Default Resolution: SysMem, * (System) Namespace: SysMem Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: SysMem SysTypes2 Interfaces ¶ Library Identification ¶ Name: SysTypes2 Interfaces Version: newest Company: System Namespace: SysTypes Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: SysTypes2 Interfaces, * (System)
IoDrvModbusSerial Library Documentation ¶ Company Schneider Electric Title IoDrvModbusSerial Version 3.5.9.0 Categories Intern|IoDrivers Namespace IoDrvModbusSerial Author 3S - Smart Software Solutions GmbH Placeholder IoDrvModbusSerial Description 1 ¶ Library for use with the Device Editor Modbus on a Serial Line of a M2XX PLC Contents: ¶ IoDrvModbusSerial (FunctionBlock) MBConstants (GVL) MBGlobalVariables (GVL) ModbusSerialMaster (FunctionBlock) DoModbusRequests (Method) ModbusSerialPort (FunctionBlock) ModbusSerialSlave (FunctionBlock) 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) Indices and tables ¶ 1 Based on IoDrvModbusSerial.library, last modified 01.01.1601, 00:53:00. LibDoc 4.4.0.0-b.27 The content file IoDrvModbusSerial.clean.json was generated with CODESYS V3.5 SP10 Patch 2 on 18.05.2017, 09:06:51.
IoDrvModbusSerial (FB) ¶ FUNCTION_BLOCK IoDrvModbusSerial EXTENDS IoDrvModbusBase.IoDrvModbusBase InOut: Scope Name Type Initial Input xStop BOOL FALSE Output uiNumberOfCommunicatingSlaves UINT 0 xAllSlavesOk BOOL FALSE
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
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)
MBFunctionCode (ENUM) ¶ TYPE MBFunctionCode : InOut: Name Initial ReadCoils 1 ReadDiscreteInputs 2 ReadHoldingRegisters 3 ReadInputRegisters 4 WriteSingleCoil 5 WriteSingleRegister 6 WriteMultipleCoils 15 WriteMultipleRegisters 16 ReadWriteMultipleRegisters 23
GlobalConstants ¶ MBConstants (GVL)
MBConstants (GVL) ¶ InOut: Scope Name Type Initial Comment Constant MAX_SLAVES UINT 256 Pool of available Channels for each Slave MAX_CHANNELS UINT := 10; Pool of available Registers shared among the available Channels (not used currently) MAX_REGISTERS UINT := 100; Pool of MB Serial Slaves MAX_INITS UINT 20 READ and WRITE Buffer size MAX_BUFFER_WORDS UINT := MAX_SLAVES * 128; 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_IO_OPTIMIZATION UINT 8002 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
Serial ¶ MB_MasterParameter (Struct) MB_SlaveParameter (Struct) ModbusSerialSlaveBase (FunctionBlock) GetNextInitValue (Method) xOldTrigger (Property) xReqError (Property)