SECS-Simulator Macro reference
Macro Recipe Format
Format is JSON(RFC 8259), write directly.
{
"tasks": [
{
"command": string,
"option": string,
"timeout": number
},
...
]
}
Download and see macro-recipe-examples.
Command Manual
- open
- Open communicator and blocking until communicating.
If already opened, close communicator and re-open.
- close
- Close communicator.
- send-sml-alias, sendsmlalias
- Send by alias-name of added SMLs.
Require "option", alias-name of added SML string.
- send-sml-direct, sendsmldirect
- Send option SML.
Require "option", send SML string.
- wait-sxfy, wait, waitsxfy
- Waiting until received option "SxFy"
Require "option", waiting "SxFy" format string.
If "timeout" setted > 0.0, waiting received "SxFy" until timeout, breaking macro task if timeout.
- sleep
- Sleep timeout seconds.
Require "timeout", sleeping seconds.