CCST 42 — Two-Point Calibration Error
Ready to build this?
Sign up free — no credit card required. This scenario requires the Pro plan.
Sign up to play this scenario →Already have an account? Log in
Not ready for Pro? Try a free scenario like this →
Briefing
A technician applies 0 percent and then 100 percent to a transmitter and records the loop current at each point, in hundredths of a milliamp: ZERO_READ_X100 (ideal 4.00 mA = 400) and SPAN_READ_X100 (ideal 20.00 mA = 2000). Report each calibration error as a percent of span, in tenths of a percent: ZERO_ERR_X10 and SPAN_ERR_X10. The span of the signal is 16.00 mA (1600). For example, a zero point reading 4.10 mA is 0.10 mA high, which is 0.625 percent of span, reported as about 6. A result within 1 of the true value is accepted. A low reading is a negative error. Maths is built with Math boxes (SUB, MUL and DIV), or in the Code tab one assignment per line. Multiply before you divide, and hold the in-between product in a DINT.
Objectives
- Exactly 4.00 mA at zero and 20.00 mA at span: both errors are 0
- A high reading gives a positive error and a low reading gives a negative one
- The zero error and the span error are worked out independently
Hints
- An error is how far the reading is from where it should be. What should each point read when the transmitter is perfect?
- The error is quoted against the whole span of the signal, not against the reading itself. How big is that span in these units?
- Whole-number division drops the fraction, so a small difference divided by a big span becomes 0. Scale the difference up first, and keep its sign.
- Test 410 at zero: about 6. Test 1984 at span: about -10. Then try both at once with different errors to prove the outputs are independent.
I/O Table
Inputs
ZERO_READ_X100Loop current at 0 percent applied, hundredths of mA (400 = 4.00 mA)
INT · %IW0
SPAN_READ_X100Loop current at 100 percent applied, hundredths of mA (2000 = 20.00 mA)
INT · %IW1
Outputs
ZERO_ERR_X10Zero error, tenths of a percent of span
INT · %QW0
SPAN_ERR_X10Span error, tenths of a percent of span
INT · %QW1
Your program will be tested against:
All test cases run automatically when you submit. Assertions are hidden until you pass.
- #14.00 and 20.00 mA → no error
A perfect transmitter has no error
- #2Zero reads 4.10 mA → +0.6 percent
A high zero is a positive error
- #3Span reads 19.84 mA → -1.0 percent
A low span is a negative error
- #4Both points high
Zero 4.24 mA and span 20.32 mA
- #5Zero reads 3.84 mA → -1.0 percent
A low zero is a negative error
- #6Span error only
Zero correct, span 20.80 mA
Related scenarios
Ready to build this?
Sign up free — no credit card required. This scenario requires the Pro plan.
Sign up to play this scenario →Already have an account? Log in
Not ready for Pro? Try a free scenario like this →