ladder_drive 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/ladder_drive/version.rb +1 -1
- data/lib/plc/raspberrypi/raspberrypi_plc.rb +1 -1
- data/template/ladder_drive/config/plc.yml +25 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a51d18cc531802a5947dc4e2c8bbd0f4b6f275e
|
4
|
+
data.tar.gz: d629a04642bbbfbdc0a7d70b4f4660b068e66262
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acc407dcefc6b258c8a6b4a22a43b33070e78a9611a7997b7df103e0ce17eff99fba377cce6911bf5ffcc139e122b8b29cadd4bad473527d34971c235a026592
|
7
|
+
data.tar.gz: 8bd5531dfb0b7405b8ec4bd1e044c98aa70a6e2ffd710dbffca5b2a2fbefb1c104d1d5820c4e2d7e246328be92c302707c8ec5159b65af6e518a869be5ca2d3a
|
data/Gemfile.lock
CHANGED
data/lib/ladder_drive/version.rb
CHANGED
@@ -17,8 +17,32 @@ plc:
|
|
17
17
|
cpu: kv-5000
|
18
18
|
protocol: kv_protocol
|
19
19
|
host: 192.168.0.11
|
20
|
-
# port: 8501
|
20
|
+
# port: 8501
|
21
21
|
|
22
|
+
# Raspberry Pi
|
23
|
+
raspberrypi:
|
24
|
+
cpu: Raspberry Pi
|
25
|
+
io: # assign gpio to x and y
|
26
|
+
inputs:
|
27
|
+
x0:
|
28
|
+
pin: 4 # gpio no
|
29
|
+
pull: up # up | down | off
|
30
|
+
invert: true
|
31
|
+
x1:
|
32
|
+
pin: 17
|
33
|
+
pull: up
|
34
|
+
invert: true
|
35
|
+
x2:
|
36
|
+
pin: 27
|
37
|
+
pull: up
|
38
|
+
invert: true
|
39
|
+
outputs:
|
40
|
+
y0:
|
41
|
+
pin: 18
|
42
|
+
y1:
|
43
|
+
pin: 23
|
44
|
+
y2:
|
45
|
+
pin: 42
|
22
46
|
|
23
47
|
# default section
|
24
48
|
default:
|