Commit db182e38 authored by Thomas Schmidt's avatar Thomas Schmidt Committed by Maik Brueggemann

added implementation of DataPartSSLCommunicationCapabilityParameters

parent 662054c7
......@@ -261,6 +261,39 @@ class S7CommDataPartSSLAssignmentProcessimageOBs(S7CommDataPart):
name = "DataPartSSL CPUCharacteristics"
class S7CommDataPartSSLCommunicationCapabilityParameters(S7CommDataPart):
name = "DataPartSSL CommunicationCapabilityParameters"
fields_desc = [XShortField("index", 0x0003),
XBitField("funct_0_reserved", 1, 1),
XBitField("funct_0_clear_cyclic_reading", 1, 1),
XBitField("funct_0_stop_cyclic_reading", 1, 1),
XBitField("funct_0_start_cyclic_reading", 1, 1),
XBitField("funct_0_init_cyclic_reading_explicit", 1, 1),
XBitField("funct_0_init_cyclic_reading_implicit", 1, 1),
XBitField("funct_0_write_once", 1, 1),
XBitField("funct_0_read_once", 1, 1),
XBitField("funct_1_bit_memory", 1, 1),
XBitField("funct_1_outputs", 1, 1),
XBitField("funct_1_inputs", 1, 1),
XBitField("funct_1_peripheral_io", 1, 1),
XBitField("funct_1_reserved", 0xC, 4),
XBitField("funct_2_s7_counter", 0x1, 1),
XBitField("funct_2_reserved", 0, 5),
XBitField("funct_2_data_record", 1, 1),
XBitField("funct_2_user_db", 1, 1),
XBitField("funct_3_reserved", 0, 4),
XBitField("funct_3_high_speed_counter", 0, 1),
XBitField("funct_3_iec_timer", 0, 1),
XBitField("funct_3_iec_counter", 0, 1),
XBitField("funct_3_s7_timer", 0, 1),
ShortField("max_consist_readable_data", 240),
ShortField("max_cyclic_read_jobs", 16),
ShortField("min_period_cyclic_read_jobs", 1),
ShortField("max_period_cyclic_read_jobs", 521),
XBitField("reserved", 0, 208)]
class S7CommDataPartSSLCommunicationStatusData(S7CommDataPart):
name = "DataPartSSL CPUCharacteristics"
......@@ -346,6 +379,7 @@ S7COMM_SSL_PARTIAL_LIST_TYPES = {
0x19: S7CommDataPartSSLStatusOfLED,
0x22: S7CommDataPartSSLInterruptStatus,
0x25: S7CommDataPartSSLAssignmentProcessimageOBs,
0x31: S7CommDataPartSSLCommunicationCapabilityParameters,
0x32: S7CommDataPartSSLCommunicationStatusData,
0x37: S7CommDataPartSSLEthernet,
0x71: S7CommDataPartSSLHCPUGroup,
......@@ -371,6 +405,7 @@ S7COMM_SSL_PARTIAL_LIST_TYPES = {
S7CommDataPartSSLStatusOfLED: 0x19,
S7CommDataPartSSLInterruptStatus: 0x22,
S7CommDataPartSSLAssignmentProcessimageOBs: 0x25,
S7CommDataPartSSLCommunicationCapabilityParameters: 0x31,
S7CommDataPartSSLCommunicationStatusData: 0x32,
S7CommDataPartSSLEthernet: 0x37,
S7CommDataPartSSLHCPUGroup: 0x71,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment