6/3/2014 10:45 AM | |
Joined: 3/26/2009 Last visit: 4/20/2023 Posts: 130 Rating:
|
I configured the RCV_CFG data as: dez# 01 in start.startcond (recognize single character) hex# 02 in start.startchar hex# 01 in STRSEQ1CTL Char $N in STRSEQ1 (Symbols from manual page 116) dez# 32 to "end.Endcond" hex# 10 to "end.seq.ctl" Char '$R' to end.seq.str[5] but the character $N in the STRSEQ1 is not accepted: The data type of the actual parameter does not match the data type Char of the formal parameter. |
6/3/2014 4:20 PM | |
Joined: 7/7/2010 Last visit: 6/9/2023 Posts: 13374 Rating:
|
Char '$R' is not the same as Char $R. Try creating a watch table with a char tag. Now find the right combination of $R & $N to get the value you want. If you put your Char in a DB, you can then use the watch table to view the hex value of your char live. I have only used the $R character. I am surprised the $N is not working though. Try your watch table and see what you can come up with. |
science guy |
|
12/30/2021 3:16 PM | |
Joined: 5/30/2014 Last visit: 6/7/2023 Posts: 117 Rating:
|
The reason that $N is not accepted is that $N is the two character constant, consisted from the Line feed (LF) and Carriage return (CR). You probably wanted single CR, which is represented by $R or $r (the same manual and page reference). Be aware that many protocols and usual ASCII text files uses combination CR-LF, which is different from TIA Portal $N (LF-CR)! |
If you find my contribution helpful please RATE it :)) |
|
Follow us on