CBLV needs to be in an authorised or Link Listed Library and Linked with AC=1 otherwise an IEC181I 040-002 error occurs.