Technical FAQs

Ask a Question

'Tesys U Sc Ad' variables from an STB Advantys application created with the DTM tools could be imported with the wrong datatype.

Goals and Symptoms
If you have more than two 'Tesys U Sc Ad' configured in the Advantys application, some of the variables for the third
and higher Tesys U could be incorrectly imported with the wrong datatype.

Facts and Change
Unity

Causes and Fixes 
When you add a Modbus device in the DTM Browser using an Advantys STB (example Unity application is attached to
this resolution) that is configured with a 'Tesys U Sc Ad', device, the imported varaibles from the Advantys application
is shown correctly in the 'Item Properties' window, as datatype 'byte array' (Figure. 1).

Figure 1                                                      

Note:  To get to this window, follow the instructions for Figures 5, 8 and 9 shown below.



If you have more than two 'Tesys U Sc Ad' configured in the Advantys application (Figure 2), some of the variables for the
third and higher Tesys U could be imported with the datatype 'udint' even though the Item Properties window (Figure. 3)
show that the datatype should be in the form of bytes.

Figure 2




Figure 3                                                                   

Note:  To get to this window, follow the instructions for Figures 5, 8 and 9 shown below.



If you try to build the application, Unity returns a 'datatype do not match...' error (Figure. 4)

Figure 4
.



In order to correct the issue, the datatype must be changed from 'udint' to 'byte array' using the following steps.
  • Open the DTM Browser (Figure 5)
  • Double click on the host IP address in the DTM Browser to open the 'fdt configuration' window.
Figure 5



 
  • Click on the slave device name to open the 'Properties' tab (Figure 6).
Figure 6



 
  • Change the 'Input Mode' for the 'Items Management' to Manual (Figure 7).
  • Click on Apply
  • Click on OK.
Figure 7



 
  • Click on 'Request 002 Items' (Figure 8).
  • Click on the 'Output' tab.
  • Scroll down and locate the varaiable to be changed.
  • Click on the variable name to highlight it.
  • Click on 'Show Properties'
Figure 8



 
  • Highlight the name shown in the 'Item Name' textbox (Figure 9).
  • Right click on the name and select 'Copy (Figure 10).
  • Click on 'Cancel' to close the 'Item Properties' window.
Figure 9



Figure 10



 
  • Go back to the 'Output tab (Figure 11).
  • Select and highlight the variable name and the 3 emtpy rows below it.
  • Remember the row number.
  • Click on 'Delete Item(s)'.
Figure 11



 
  • Click on the row number that you remembered earlier (Figue 12).
  • Highlight the row and the three empty rows below it.
  • Click on 'Define Item(s)'.
Figure 12



 
  • Paste the name into the 'Item Name' textbox (Figure 13).
  • Click on the drop down for 'Define the Selected Area As'.
  • Select 'One Item Of Array Type'.
  • Click on OK
Figure 13



 
  • Go back and repeat the same procedure for the remaining variables to be corrected.
  • Click on 'Apply' (Figure 14) after all of the variables have been corrected.
  • Click on OK.
Figure 14



 
  • Build the application (Figure 15).
Figure 15





Note:  If there is a huge amount of varaibles that need to be corrected and it could take a very long time to complete the
           task,  I would recommend to periodically applying  and saving the changes.
Was this helpful?
What can we do to improve the information ?