3/23/2024 11:49 AM | |
Joined: 1/29/2019 Last visit: 4/28/2024 Posts: 16 Rating: (0) |
Hello guys, I am trying to display the array of strings on HMI using FB and called FC. I have FB with a structure of 3 arrays of INT: a number and two data arrays. I call FC which should refer to first array (RejNum), and write into output strings array in accordance with a content: if the number is >0 the result should be conversion from INT to String; in case of 0 it should be an error message; in case of -1 the output string should be '---'(empty slot). The output string array in FC is attached to corresponding array in FB, which is the source of HMI tags. The problem is that IO field on the panel remains empty in all cases. Please see attached screenshots of the program code and HMI. I use TIA v17 with CPU 1510SP-1 PN and TP1200 Comfort panel. Does anyone have an idea what I'm doing wrong? Thanks in advance, Ben. AttachmentScreenshots.pdf (19 Downloads) |
Follow us on