Industry Online Support
Technical Forum
2/9/2011 1:58 PM | |
Posts: 42 Rating: (1) |
Hi I am interested to know how conversion function for SCL can cause error and enable status bits of cpu.For eample BYTE_TO_BOOL or ROUND or TRUNC. Thank you |
2/10/2011 9:02 AM | |
Posts: 316 Rating: (37) |
Hi ROCLIM, I have test it with this code in PLCSIM: [code] // Statement TEST_B:=B#16#11; TEST_BOOL:=BYTE_TO_BOOL(TEST_B); TEST_BOOL:=TEST_BOOL; [/code] --> CC1 = TRUE and [code] // Statement TEST_B:=B#16#11; //TEST_BOOL:=BYTE_TO_BOOL(TEST_B); TEST_BOOL:=TEST_BOOL; [/code] .--> CC1 = FALSE The different is the "CC1" bit of the status word. Note: The status word bits CC 1 and CC 0 indicate the relations ‘’less,’’ ‘’equal,’’ or ‘’greater." |
Last edited by: Chilly_Garfield at: 2/10/2011 9:08 AM |
|
Follow us on