Professional Documents
Culture Documents
17centum VP - How To - Debug Subsystem Communication
17centum VP - How To - Debug Subsystem Communication
THIS DOCUMENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND WHATSOEVER, EITHER
EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE WARRANTIES REGARDING
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT OR ACCURACY OF DATA.
IN NO EVENT SHALL YEF-RO BE LIABLE FOR ANY LOSS, EXPENSE OR DAMAGE ARISING OUT OF OR IN
CONNECTION WITH THE USE OF OR RELIANCE UPON THE INFORMATION IN THIS DOCUMENT.
WHENEVER IN DOUBT OR WANT MORE INFORMATION REMEMBER TO ALWAYS CHECK THE MANUAL!
How To … Debug Subsystem Communication
Modbus RS 232 – Not used so often, can handle only one station (PLC, device etc)
- Point to point
- Minimum 3 wire connection (transmit, receive, ground)
- DB-25 connector
Modbus RS 485 – Used often, simple implementation, can handle more stations (PLC, device etc)
Modbus TCP/IP - Used often, can involve redundancy issues if servers are used by the 3rd Party Vendors
rather than communication cards.
RS 232
RS 485
Modbus TCP/IP
After physical connection check if we still have no communication we start with the WW
allocation check versus received database together with Modbus specific checks
Coils
Holding Registers
Note :
Following table illustrates details on each type of code. Readback option should be turned off if
communication errors or no communication at all appear when outputs (digital or analog) are defined.
Note: A new call is needed when each time data type changes:
Check WW allocation (WB allocation has no impact on communication parameters) against received
database and against 3rd party vendor allocation
4. Online debugging (Process Report)
.PR (Process Report) can be used to online debug if the communication is present but some errors are
found in data handling like wrong values, wrong bit allocation, wrong bit order, etc
Next we can observe the small area located at:
WW 0401
Each column has 16 bits (a word) and only one time per row we are shown the word indicator
(WB040100, so the next columns on the first row correspond to WW0402, WW0403 and WW0404)
Sometimes when communicating with other systems the raw analog (actual) value sent from the
subsystem to us, differs from the actual intended value (e.g. for 7 bar-g subsystem sends 15000 as a raw
value). The 3rd Party Vendor must indicate wheatear they use the standard data type definitions or not.
If they don’t then we will need to be informed of the minimum and maximum raw value their system is
using for a predefined interval.
Next we need to scale the raw value received to the desired instrument range (150 … 800)
The standard scaling equation is : ax + b = y, where x is the raw value sent and y is the desired value to
show. The coefficients a and b are the Gain and Bias.
Below we can find the generalized formula for gain and bias :
Gain = (b-a)/(d-c)
Bias = (ad-cb)/(d-c)
Where
Scale Low is a
Scale High is b
For our example gain = 0.0203125 and bias = 150, so for x = 16000 y = 0.0203125*16000 + 150 = 475
PVI Block
MLD-SW Block
Note :
If the 3rd Party Vendor uses standard data type definitions no gain and bias need to be set but Signal
Conversion needs to be set to Communication Input/Output
Example :
We observe data type: 32S (32 bit signed integer) so a standard minimum value of -2147483648 and
maximum of 2147483648. In this case the gain remains 1 and bias 0.