-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from TG9541/C0135
C0135 with release
- Loading branch information
Showing
3 changed files
with
78 additions
and
23 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#require MBSERVER | ||
|
||
$4000 CONSTANT EE_NODE | ||
$4002 CONSTANT EE_BAUD | ||
|
||
#require :NVM | ||
#require WIPE | ||
|
||
NVM | ||
#require OUT! | ||
|
||
\ output handler | ||
:NVM | ||
coils @ OUT! | ||
;NVM ( xt ) | ||
|
||
\ --- MODBUS server startup | ||
: init ( -- ) | ||
( xt ) LITERAL mbact ! | ||
0 coils ! | ||
|
||
EE_BAUD @ ( #BR ) UARTISR | ||
EE_NODE @ DUP 0 256 WITHIN NOT IF | ||
DROP 1 \ out of range - use default | ||
THEN | ||
( n ) mbnode ! | ||
|
||
MBSERVER | ||
; | ||
|
||
' init 'BOOT ! | ||
WIPE RAM |
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