Skip to content

Commit

Permalink
fix command for plc4x (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomqin93 authored Apr 6, 2023
1 parent 417bfbc commit f6ab503
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/guides/cases/connect-s7-plc4x.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,10 @@ At this point ***Shifu*** returns the status of the first indicator from left to

`write` means to modify the value of the corresponding location through commands:

For example, the command `curl "deviceshifu-plc4x/read?%Q0.0:BOOL=true"` will change the first bit of `Q0` to true.
For example, the command `curl "deviceshifu-plc4x/write?%Q0.0:BOOL=true"` will change the first bit of `Q0` to true.

```bash
curl "deviceshifu-plc4x/read?%Q0.0:BOOL=true"; echo
curl "deviceshifu-plc4x/write?%Q0.0:BOOL=true"; echo
```

### More
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,10 @@ curl "deviceshifu-plc4x/read?%Q0.0:BOOL"; echo

`write` 表示通过命令修改对应位置的值:

比如,命令`curl "deviceshifu-plc4x/read?%Q0.0:BOOL=true"` 会将 `Q0` 的第一个 bit 修改为true。
比如,命令`curl "deviceshifu-plc4x/write?%Q0.0:BOOL=true"` 会将 `Q0` 的第一个 bit 修改为true。

```bash
curl "deviceshifu-plc4x/read?%Q0.0:BOOL=true"; echo
curl "deviceshifu-plc4x/write?%Q0.0:BOOL=true"; echo
```

### 更多
Expand Down

0 comments on commit f6ab503

Please sign in to comment.