Triggering a Sintral generated event
In addition to those events generated by the knitting machine, events can also be triggered by the Sintral program.
Enter one of the following PRINT commands into Sintral at the corresponding position for this purpose:
Syntax |
Explanation |
---|---|
PRINT /text/ |
text = Any ASCII characters (comment, is displayed on the machine touch screen). text may contain several [#<VariableName>] variables. |
The PRINT /Hello Operator/ command causes the text to be displayed on the touch screen. | |
PRINT /@SKR#:text/ |
@SKR = identification that data was reported to the database. The corresponding EVENT_TYP is 5. This command causes an entry in the database without the Sintral status being changed (Sintral-generated events without status (info events)) |
The command PRINT /@SKR2:xyz / causes the EVENT_ID entry (2) in the database with the time of its occurrence. In the EVENT_PARAM column you can find the entry . | |
PRINT /@SKR#S:text/ |
@SKR = identification that data was reported to the database. This command causes an entry in the database with the Sintral status being changed (Sintral generated events with status (status events)) The Sintral status can be called up additionally via the live machine state table (skr_get_mc_states) in the SINTRAL_STATE column (Live machine state prompt). |
The command PRINT /@SKR4S:abc/ causes the EVENT_ID entry (4) in the database with the time of its occurrence. The Sintral status is set to 4. |
The status corresponds to that specified with #.
The respective status is retained until the next Sintral command with the PRINT /@SKR#S:text/ syntax is executed and sets the status in accordance with its #.
Both events (Sintral information, EVENT_TYP=5 and Sintral status, EVENT_TYP=6) can also be determined using the event list (Evaluating the Event List). You can find the given number in the EVENT_ID column.
In the EVENT_PARAM column appears the text. The ASCII text can be mixed with any variables in the [#<VariablenName>] format.
Example text:
xyz, NP1=[#NP1] ; Count151= [#151] – Demo
In the column EVENT_PARAM you would find the entry , if NP1 contains the value 10 and the counter value 151 was set to 35.
If this command is included in a program loop, this may cause overloading of the network and of the database because this event is generated constantly.