4015

“Data type ‘<name>’ illegal for \ direct bit access”

Direct bit addressing is only allowed for Integer- and Bitstring datatypes and not for direct variables. You are using a variable var1 of type REAL/LREAL or a constant in bit access <var1>.<bit>, or you are trying a bit access on a direct variable.