|
1 | | -import datetime |
2 | | - |
3 | 1 | from .s7comm import AsyncS7Comm, enums |
4 | 2 | from .s7comm.packets.variable_address import VariableAddress |
5 | 3 | from .s7comm.szl import ( |
@@ -74,91 +72,8 @@ async def read_multi_vars(self, items: list[str]) -> list[bytes]: |
74 | 72 | response = await self.s7comm.read_multi_vars(items=vars_) |
75 | 73 | return response.values() |
76 | 74 |
|
77 | | - async def write_multi_vars(self, items: list[tuple[str, bytes]]) -> bool: |
| 75 | + async def write_multi_vars(self, items: list[tuple[str, bytes]]) -> None: |
78 | 76 | vars_ = [(VariableAddress.from_string(address), data) for address, data in items] |
79 | 77 | response = await self.s7comm.write_multi_vars(items=vars_) |
80 | | - return response.check_result() |
81 | | - |
82 | | - async def set_plc_system_datetime(self) -> int: |
83 | | - raise NotImplementedError |
84 | | - |
85 | | - async def delete(self, block_type: str, block_num: int) -> int: |
86 | | - raise NotImplementedError |
87 | | - |
88 | | - async def full_upload(self, _type: str, block_num: int) -> tuple[bytearray, int]: |
89 | | - raise NotImplementedError |
90 | | - |
91 | | - async def upload(self, block_num: int) -> bytearray: |
92 | | - raise NotImplementedError |
93 | | - |
94 | | - async def download(self, data: bytearray, block_num: int = -1) -> int: |
95 | | - raise NotImplementedError |
96 | | - |
97 | | - async def db_get(self, db_number: int) -> bytearray: |
98 | | - raise NotImplementedError |
99 | | - |
100 | | - async def get_cpu_info(self) -> None: |
101 | | - raise NotImplementedError |
102 | | - |
103 | | - async def get_pg_block_info(self, block: bytearray) -> None: |
104 | | - raise NotImplementedError |
105 | | - |
106 | | - async def get_protection(self) -> None: |
107 | | - raise NotImplementedError |
108 | | - |
109 | | - async def iso_exchange_buffer(self, data: bytearray) -> bytearray: |
110 | | - raise NotImplementedError |
111 | | - |
112 | | - async def list_blocks(self) -> None: |
113 | | - raise NotImplementedError |
114 | | - |
115 | | - async def list_blocks_of_type(self, blocktype: str, size: int) -> None: |
116 | | - raise NotImplementedError |
117 | | - |
118 | | - async def get_block_info(self, blocktype: str, db_number: int) -> None: |
119 | | - raise NotImplementedError |
120 | | - |
121 | | - async def set_session_password(self, password: str) -> int: |
122 | | - raise NotImplementedError |
123 | | - |
124 | | - async def clear_session_password(self) -> int: |
125 | | - raise NotImplementedError |
126 | | - |
127 | | - async def set_connection_params(self, address: str, local_tsap: int, remote_tsap: int) -> None: |
128 | | - raise NotImplementedError |
129 | | - |
130 | | - async def set_connection_type(self, connection_type: int) -> None: |
131 | | - raise NotImplementedError |
132 | | - |
133 | | - async def compress(self, time: int) -> int: |
134 | | - raise NotImplementedError |
135 | | - |
136 | | - async def set_param(self, number: int, value: int) -> int: |
137 | | - raise NotImplementedError |
138 | | - |
139 | | - async def get_param(self, number: int) -> int: |
140 | | - raise NotImplementedError |
141 | | - |
142 | | - async def plc_stop(self) -> None: |
143 | | - raise NotImplementedError |
144 | | - |
145 | | - async def plc_cold_start(self) -> int: |
146 | | - raise NotImplementedError |
147 | | - |
148 | | - async def plc_hot_start(self) -> int: |
149 | | - raise NotImplementedError |
150 | | - |
151 | | - async def get_plc_datetime(self) -> None: |
152 | | - raise NotImplementedError |
153 | | - |
154 | | - async def set_plc_datetime(self, datetime: datetime.datetime) -> int: |
155 | | - raise NotImplementedError |
156 | | - |
157 | | - async def copy_ram_to_rom(self, timeout: int = 1) -> int: |
158 | | - raise NotImplementedError |
159 | | - |
160 | | - async def db_fill(self, db_number: int, filler: int) -> int: |
161 | | - raise NotImplementedError |
162 | | - |
163 | | - async def get_cp_info(self) -> None: |
164 | | - raise NotImplementedError |
| 78 | + response.check_result() |
| 79 | + return None |
0 commit comments