S7 Read_Clk how do I pull all 8 bytes into DataBlock?
S7 Read_Clk how do I pull all 8 bytes into DataBlock?
(OP)
I am finshing a project but need to parse out the DateTime from the Read_CLK SFC1. Can I just call the SFC1 and place the CDT result in a datablock?
Lance
Lance





RE: S7 Read_Clk how do I pull all 8 bytes into DataBlock?
Regards,
Jacek
Do it right or don't do it at all.
RE: S7 Read_Clk how do I pull all 8 bytes into DataBlock?
Is there an easy way to do this?
Lance
RE: S7 Read_Clk how do I pull all 8 bytes into DataBlock?
a bit late but,
create a temp-var Typ DT e.g. #tmp_DT;
and then:
CALL "READ_CLK"
RET_VAL:=MW200
CDT :=#tmp_DT
CALL "BLKMOV"
SRCBLK :=#tmp_DT
RET_VAL:=MW200
DSTBLK :=P#M 300.0 BYTE 8
to transfer the DT e.g. to--> MB300 - MB307
HTH
Rolf
RE: S7 Read_Clk how do I pull all 8 bytes into DataBlock?
That's it! Thanks. It is simple once you figure it out, hehe.
I am learning that I need to learn the Standard blocks to see what all tools are in there. I was looking for the Block Move myself.
Now I just have to be able to take the 8 bytes and convert them to DT formate to Set the Clock and I am done.
Thanks again.
Lance
RE: S7 Read_Clk how do I pull all 8 bytes into DataBlock?
CALL "READ_CLK"
RET_VAL:=#iRetVal
CDT :=DB1.DT1
where DT1 is data of type DT defined in DB1.
Regards,
Jacek
Do it right or don't do it at all.