forked from simjunheng/Metro_emulator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added the config loader to sensors-signal PLC module
- Loading branch information
1 parent
2012291
commit 36b22d6
Showing
9 changed files
with
71 additions
and
25 deletions.
There are no files selected for viewing
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# This is the config file template for the module <monitorApp.py> | ||
# Setup the paramter with below format (every line follow <key>:<val> format, the | ||
# key can not be changed): | ||
|
||
# Set the master PLC's name | ||
PLC_NAME:PLC-01 | ||
|
||
# Define the ip addresses allowed to read PLC state: | ||
# json list fomat: ["masterIP", "slave1IP", ...] | ||
ALLOW_R_L:["127.0.0.1", "192.168.0.10"] | ||
|
||
# Define the ip addresses allowed to change PLC state: | ||
# json list fomat: ["masterIP", "slave1IP", ...] | ||
ALLOW_W_L:["127.0.0.1"] | ||
|
||
# Define Realworld emulator ip | ||
RW_IP:127.0.0.1 | ||
|
||
# Define Realworld emulator connection port | ||
RW_PORT:3001 | ||
|
||
# Define PLC clock interval | ||
CLK_INT:0.6 | ||
|
||
# Define modbus TCP host IP, use 0.0.0.0 or localhost | ||
MD_BUS_IP:localhost | ||
|
||
# Define modbus TCP host Port, normally use 502 | ||
MD_BUS_PORT:502 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters