SA0078: Faltan ramas CASEPermalink

Detecta las sentencias ‎CASE‎ sin ramas ‎CASE‎ y una sola sentencia ‎ELSE‎

Justificación: Una sentencia ‎CASE‎ sin casos desperdicia tiempo de ejecución y es difícil de leer.

Importancia: Medio

Ejemplo

PROGRAM PLC_PRG
VAR
	iVar : INT;
	xTemp : BOOL;
END_VAR

iVar := iVar + INT#1;
//in the following the case descriptions are missing:
CASE iVar OF           
	ELSE
		xTemp := NOT xTemp;
END_CASE

--> SA0078: CASE-Missing CASE branches