Issue
How to display the date as an object in Sigma.
Environment
BAS
SIGMA
Cause
How to display the date as an object in Sigma.
Resolution
For Day and Month only, the following programmable point needs to be configured:
10 XFlo = FLOAT ( MONTH )
20 XFlo = XFlo / 100.000
30 YFlo = FLOAT ( DAY )
40 RETURN VIA TEXT 449 VALUE XFlo + YFlo
The date will be displayed in the dd.mm format.
Shorttext will need to be created as below:
%2.2f and will be displayed as 17.07
or
Date:%2.2f and will be displayed as Date:17.07
If Day, Month and Year is required the following can be configured:
10 XFlo = FLOAT ( MONTH )
20 XFlo = XFlo * 100.000
30 YFlo = FLOAT ( DAY )
40 YFlo = YFlo * 10000.0
50 ZFlo = FLOAT ( YEAR )
60 RETURN VIA TEXT 449 VALUE XFlo + YFlo + ZFlo
The date will be displayed in the ddmmyy format.
Shorttext will need to be created as below:
Date:%2.0f and will be displayed as Date:170712