5 Time Series Database Instructions
TimeSeries_ControlService
The TimeSeries_ControlService instruction controls TSDB service status (start, stop, or shutdown).
Instruction
Name
TimeSer-
Control TSDB
ies_Control-
Service Status
Service
Variables
Name
Meaning
Cmd
Command
Boo
Bit strings
lean
Name
Cmd
Function
This instruction performs the Start command, Stop command or Shutdown command to the TSDB
service.
This instruction ends normally if the TSDB service is already in the same status as the command, such
as when Start command is input for Cmd while the TSDB service is Running.
Related System-defined Variables
Name
_TSDB_Status
_TSDB_ShutdownCmd
5-2
FB/F
Graphic expression
UN
TimeSeries_ControlService_instance
TimeSeries_ControlService
Execute
FB
Cmd
I/O
Description
Input a command to be
executed.
Input
1: Start command
2: Stop command
9: Shutdown command
Integers
Meaning
TSDB Service Status
_sTSDB_STATUS
TSDB Service Shut-
BOOL
down Command
NX/NY-series Artificial Intelligence Machine Automation Controller User's Manual (W594)
TimeSeries_ContorlService_in-
stance (
Execute,
Done
Cmd,
Busy
Done,
Busy,
Error
Error,
ErrorID
ErrorID);
Valid range
1, 2, 9
Real
num-
bers
OK
Data type
System-defined variable that shows the
status of the TSDB service
When the variable changes from FALSE
to TRUE, the shutdown command sends
to the TSDB service.
ST expression
Unit
Default
---
0
Times, durations,
dates, and text strings
Description