Utility class for Mitsubishi device address parsing, validation, and mapping Handles all standard Mitsubishi device types and address formats. More...
Static Public Member Functions | |
| static string int address | ParseDeviceAddress (string device) |
| static bool | IsValidDeviceAddress (string deviceType, int address) |
| Validates if a device address is valid for the specified device type. | |
| static Type | GetDataTypeForDevice (string deviceType) |
| Gets the appropriate data type for a device. | |
| static SignalType | GetSignalTypeForDevice (string deviceType) |
| Gets signal type for realvirtual based on device type. | |
| static SignalDirection | GetDefaultDirection (string deviceType) |
| Determines the appropriate signal direction based on device type (from PLC perspective) | |
| static bool | IsReadOnlyDevice (string deviceType) |
| Checks if device type is read-only. | |
| static bool | IsBitDevice (string deviceType) |
| Checks if device type uses bit addressing. | |
| static DeviceTypeInfo | GetDeviceInfo (string deviceType) |
| Gets device type information. | |
| static string | FormatDeviceAddress (string deviceType, int address, bool useHex=false) |
| Formats a device address for display. | |
| static int | OctalToDecimal (int octalAddress) |
| Converts octal address to decimal (for X, Y devices) | |
| static int | DecimalToOctal (int decimalAddress) |
| Converts decimal address to octal (for X, Y devices) | |
| static string int int address | ParseFileRegisterAddress (string device) |
| static List< string > | GetSupportedDeviceTypes () |
| Gets all supported device types. | |
| static List< string > | GetDeviceTypesByCategory (DeviceCategory category) |
| Gets device types filtered by category. | |
| static Dictionary< string, List< int > > | GroupAddressesForBatching (List<(string device, string address)> devices) |
| Groups device addresses for optimal batch reading. | |
| static int | GetWordCount (Type dataType) |
| Calculates the number of words needed for a data type. | |
Static Public Attributes | |
| static string | deviceType |
| Parses a device address string into device type and numeric address. | |
| static string int | blockNumber |
Detailed Description
Utility class for Mitsubishi device address parsing, validation, and mapping Handles all standard Mitsubishi device types and address formats.
Member Function Documentation
◆ DecimalToOctal()
|
static |
Converts decimal address to octal (for X, Y devices)
◆ FormatDeviceAddress()
|
static |
Formats a device address for display.
◆ GetDataTypeForDevice()
|
static |
Gets the appropriate data type for a device.
◆ GetDefaultDirection()
|
static |
Determines the appropriate signal direction based on device type (from PLC perspective)
◆ GetDeviceInfo()
|
static |
Gets device type information.
◆ GetDeviceTypesByCategory()
|
static |
Gets device types filtered by category.
◆ GetSignalTypeForDevice()
|
static |
Gets signal type for realvirtual based on device type.
◆ GetSupportedDeviceTypes()
|
static |
Gets all supported device types.
◆ GetWordCount()
|
static |
Calculates the number of words needed for a data type.
◆ GroupAddressesForBatching()
|
static |
Groups device addresses for optimal batch reading.
◆ IsBitDevice()
|
static |
Checks if device type uses bit addressing.
◆ IsReadOnlyDevice()
|
static |
Checks if device type is read-only.
◆ IsValidDeviceAddress()
|
static |
Validates if a device address is valid for the specified device type.
◆ OctalToDecimal()
|
static |
Converts octal address to decimal (for X, Y devices)
Member Data Documentation
◆ deviceType
|
static |
Parses a device address string into device type and numeric address.
Parses a file register address (e.g., "R0\100" or "ZR1000")