Technical Forum

STEP 7 Additional Software

ENUMERATED DATA TYPES in SCL

Thread Starter: elektronikmuh   Started: 7/27/2012 7:31 AM   Replies: 1

« Previous thread Next thread »
Page 1 of 1 (2 items)
  7/27/2012, 7:31 AM
Joined 8/15/2009
Last visit: 4/11/2013
Posts: 1
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hi all;
I want to use ENUMERATED DATA TYPES in SCL language, when i try to compile below code, compiling error coming. How can i do it?
 Thanks...





=== Edited by elektronikmuh @ 7/27/2012 7:47 AM [GMT ] ===


=== Edited by elektronikmuh @ 7/27/2012 7:46 AM [GMT ] ===


Top
  7/27/2012, 10:49 AM
Joined 1/28/2009
Last visit: 5/21/2013
Posts: 2859
Rating:
Rated: Excellent [4.1 out of 5 / rated 394 time(s)]. (394) 
Users with special expertise supervising conferences
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
elektronikmuh wrote:
Hi all;
I want to use ENUMERATED DATA TYPES in SCL language, when i try to compile below code, compiling error coming. How can i do it?
 Thanks...


TYPE STATES :(NOP, DISABLE, STOP, ENABLE);   END_TYPE FUNCTION_BLOCK FB100 VAR      Data : STATES; END_VAR        BEGIN     // Statement Section     ;     END_FUNCTION_BLOCK


Hello,

Structures used here will help you to implement
what you want.



Best regards,
Hamid Hosseini

Human beings are members of a whole , In creation of one essence and soul
Sa'adi


Top
Page 1 of 1 (2 items)
Actions