s7->tp177b

puczi

Member
Join Date
Jul 2006
Location
Kościelec
Posts
1
hello!!
my name is Michał,first I'd like to apologize for my no good english
I've problem with change time in my touch panel by runtime, I read time from driver cpu313c-2dp and put on my visualization and i don't know how change system time, because I use system alarm logging and this system take time and date from windows CE, Is there any solution to this problem. I need control (write and read ) time from my cpu.
 
I amn't sure did the TP177b support PLC jobs or not, but if yes, this is a solution. I tried to insert PLC job in WinCC flexible for this panel now but without success...
 
http://support.automation.siemens.com/GB/llisapi.dll?func=cslib.csinfo&lang=en&siteid=cseus&objid=18720316

This is the function you want. It uses Job 40 to syncronise time.

It is on the second page.

This is the outline of the code

AN "SET_TIME" // Start Read Time Sequence
JC end
L 40 // jobnr 40
T DB20.DBB 109 // in jobmailbox
SET
S M 5.1
R "SET_TIME"
end: NOP 0
AN M 5.1
JC ende

L W#16#0 // job finished?
L "WORK_DB".JobMailBox
==I
= #enable

A M 5.1
A #enable
L S5T#1S
SP T 20
LC T 20
T MW 70
A T 20
= M 5.2

SET
A #enable
AN M 5.2
JCN ende
CALL "SET_CLK"
PDT :="WORK_DB".OP_TIME
RET_VAL:=MW75
SET
R M 5.1
ende: NOP 0
 
Last edited:
Back
Top Bottom