Wincc Flex I/O field End of string has on HMI

I am only reading data when expecting it, but need to display it always on the hmi.
This is roughly how I would do it. It may not be complete working code.
L B#16#00
T #FillByte

A #Trigger // bit to trigger scanner
FP #FP_Tr_Sc1
S #Trigger_Bit // Output to scanner



CALL #Trigger_Timer // Timer to reset scanner trigger on time out
IN:=#Trigger_Bit
PT:=T#10S
Q :=#Trigger_Timer.Q
ET:=

//When Trigger then first clear data
A #Trigger_Bit
FP #FP_Clear_Data
JCN CLR

CALL "FILL" //FC21
BVAL :=#FillByte //Pre load this with B#16#00
RET_VAL:=#Ret_Val_Fill
BLK :=#SC_Read_Array //FC:S_RCV_ET200S write area
CLR: nop 0


CALL #Resv_ScannerData //S_RCV_ET200S
EN_R :=#Rcv_Ein
R :=#Rcv_Reset
LADDR :=#Adress_temp
DB_NO :=#DB_Temp
DBB_NO :=#DBB
NDR :=#Rcv_Ok_ND
ERROR :=#Rcv_Error
LEN :=#Rcv_Length
STATUS :=#Rcv_Status
COM_RST:=#Rcv_ResetAll

AN #Rcv_Ein
AN #Rcv_Error
S #Rcv_Ein

AN #Rcv_Error
R #Rcv_Reset

A #Rcv_Error
R #Rcv_Ein
S #Rcv_Reset

//----------------
a #Rcv_Ok_ND
a #Trigger
FP #Flanke_Data_Transfer
JCN END

CALL "BLKMOV"
SRCBLK :=#SC_Read_Array
RET_VAL:=#Ret_Val_SFC20
DSTBLK :=#Display_Array //Area for display
END: nop 0

If you need a real working example let me know.I could make you a FB that works
 
LestatZA I thank you for your help on this, I think I got it now.
Haven't been able to test it out as we are wiring the machine I may get back to you for the FB if i'm still having trouble.
 

Similar Topics

Hi I am trying to vary the number of decimal places via a script (MP377) Dim obj Set obj =...
Replies
0
Views
1,313
I want to use a symbolic IO-field in WinCC Flex, but I don't want to use a fixed textlist to display. The selection I wan't to show is not know at...
Replies
0
Views
3,892
Dear all, I have come across a problem. A plant is controled by an S314C-2DP connected to an OP177B. In the operator panel there are three I/O...
Replies
4
Views
3,651
Hi On my project I have a status area on the template screen with date and time text fields, which indicate the panels date and time. Every...
Replies
4
Views
2,493
Hi everyone, Well, I'm still working on my panel (for those who have seen my other posts, I'm having problems and delays figuring out the...
Replies
1
Views
3,562
Back
Top Bottom