Issue
Users may need to display the current date as a formatted object within Sigma.
Product Line
Satchwell BAS & SigmaEnvironment
Satchwell BAS & Sigma
Cause
Sigma does not natively format date objects for display. A programmable point must be configured to represent the date in a readable format.
Resolution
Option 1: Display Day and Month (Format: dd.mm)
Use the following programmable logic:
10 XFlo = FLOAT ( MONTH )
20 XFlo = XFlo / 100.000
30 YFlo = FLOAT ( DAY )
40 RETURN VIA TEXT 449 VALUE XFlo + YFlo
%2.2f→ Displays as17.07Date:%2.2f→ Displays asDate:17.07
Option 2: Display Day, Month, and Year (Format: ddmmyy)
Use the following programmable logic:
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
Date:%2.0f→ Displays asDate:170712
Notes
- Ensure the correct formatting is applied in the Shorttext field to match the desired output.