Jozir
Member
Hello everyone,
I'm currently working with a S7-1200 PLC (AE30 V2), software program V13.
My problem:
Whenever I start the CPU, the time is set at 1970-01-01-00:00:00 instead of the current local time.
I took a look at the online&diagnostics, went to 'set time' under 'functions', this was correctly configured and also 'Take from PG/PC' was checked so I honestly don't know what the problem is.
What I want to do:
1)Read local time when signal on I0.0 (using RD_LOC_T)
2)Read local time again when signal on I0.1 ^^
3)Divide those and put in a variable ( using T_DIFF)
4)Use math functions to get from nano seconds to seconds.
This is not possible when the local time is not correctly.
All help is welcome.
Thanks in advance!
I'm currently working with a S7-1200 PLC (AE30 V2), software program V13.
My problem:
Whenever I start the CPU, the time is set at 1970-01-01-00:00:00 instead of the current local time.
I took a look at the online&diagnostics, went to 'set time' under 'functions', this was correctly configured and also 'Take from PG/PC' was checked so I honestly don't know what the problem is.
What I want to do:
1)Read local time when signal on I0.0 (using RD_LOC_T)
2)Read local time again when signal on I0.1 ^^
3)Divide those and put in a variable ( using T_DIFF)
4)Use math functions to get from nano seconds to seconds.
This is not possible when the local time is not correctly.
All help is welcome.
Thanks in advance!