RoyHatch
4th November 2008, 12:39 AM
Why doesn't this work?
// CMS Script File
//
//
script
//Gamma... CMS BUTTONS HAVE GAMMA COMMANDS THAT INCREASE OR
// DECREASE GAMMA DEPENDING ON THE VALUE OF A1. CMS 13 AND 12
// INCREASE GAMMA AND 11 AND 10 DECREASE
SEQUENCE
if (JS1.B12 ) then
A1 = A1 + 1 ;
else
if ( JS1.B10 ) then
A1 = A1 - 1 ;
endif
endif
ENDSEQUENCE
SELECT( A1, POSITION ) OF
CASE 0:
CMS.B13 = TRUE; // Set the bit for our first message
EXITCASE:
CMS.B13 = FALSE; // Clear the bit for our first message
BREAK;
CASE 1:
CMS.B12 = TRUE; // Set the bit for our second message
EXITCASE:
CMS.B12 = FALSE; // Clear the bit for our first message
BREAK;
CASE 2:
CMS.B11 = TRUE; // Set the bit for our third message
EXITCASE:
CMS.B11 = FALSE; // Clear the bit for our third message
BREAK;
CASE 3:
CMS.B10 = TRUE; // Set the bit for our fourth message
EXITCASE:
CMS.B10 = FALSE; // Clear the bit for our fourth message
BREAK;
ENDSELECT
endScript
// CMS Script File
//
//
script
//Gamma... CMS BUTTONS HAVE GAMMA COMMANDS THAT INCREASE OR
// DECREASE GAMMA DEPENDING ON THE VALUE OF A1. CMS 13 AND 12
// INCREASE GAMMA AND 11 AND 10 DECREASE
SEQUENCE
if (JS1.B12 ) then
A1 = A1 + 1 ;
else
if ( JS1.B10 ) then
A1 = A1 - 1 ;
endif
endif
ENDSEQUENCE
SELECT( A1, POSITION ) OF
CASE 0:
CMS.B13 = TRUE; // Set the bit for our first message
EXITCASE:
CMS.B13 = FALSE; // Clear the bit for our first message
BREAK;
CASE 1:
CMS.B12 = TRUE; // Set the bit for our second message
EXITCASE:
CMS.B12 = FALSE; // Clear the bit for our first message
BREAK;
CASE 2:
CMS.B11 = TRUE; // Set the bit for our third message
EXITCASE:
CMS.B11 = FALSE; // Clear the bit for our third message
BREAK;
CASE 3:
CMS.B10 = TRUE; // Set the bit for our fourth message
EXITCASE:
CMS.B10 = FALSE; // Clear the bit for our fourth message
BREAK;
ENDSELECT
endScript