# Modbus\_CoilBlock

## `Modbus_CoilBlock` (`STRUCT`)

`TYPE` Modbus\_CoilBlock: `STRUCT`

**Modbus\_CoilBlock** is used for reading or writing single Coils. This helper struct includes 8 single coils and can be combined with the function code 01 and 02. Using an instance of **Modbus\_CoilBlock** as `Value` of `ModbusValue` allows you to read or write multiple coils

InOut:

| Name     | Type  |
| -------- | ----- |
| `Coil_1` | `BIT` |
| `Coil_2` | `BIT` |
| `Coil_3` | `BIT` |
| `Coil_4` | `BIT` |
| `Coil_5` | `BIT` |
| `Coil_6` | `BIT` |
| `Coil_7` | `BIT` |
| `Coil_8` | `BIT` |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.powerio.com/hub/codesys-hvac/hvac-modbus-library/datatypes/strukturen/modbus_coilblock.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
