plcopen/structures.py
changeset 541 24f111835805
parent 526 79900abdfa3c
child 582 aa41547baa2a
equal deleted inserted replaced
540:82fa901a2160 541:24f111835805
   420     return params
   420     return params
   421 
   421 
   422 
   422 
   423 ANY_TO_ANY_LIST=[
   423 ANY_TO_ANY_LIST=[
   424         # simple type conv are let as C cast
   424         # simple type conv are let as C cast
   425         (("ANY_NUM","ANY_BIT"),("ANY_NUM","ANY_BIT"), ("return_type", "__move_", "IN_type")),
   425         (("ANY_INT","ANY_BIT"),("ANY_NUM","ANY_BIT"), ("return_type", "__move_", "IN_type")),
       
   426         (("ANY_REAL",),("ANY_REAL",), ("return_type", "__move_", "IN_type")),
       
   427         # REAL_TO_INT
       
   428         (("ANY_REAL",),("ANY_SINT",), ("return_type", "__real_to_sint", None)),
       
   429         (("ANY_REAL",),("ANY_UINT",), ("return_type", "__real_to_uint", None)),
       
   430         (("ANY_REAL",),("ANY_BIT",), ("return_type", "__real_to_bit", None)),
   426         # TO_TIME
   431         # TO_TIME
   427         (("ANY_INT","ANY_BIT"),("ANY_DATE","TIME"), ("return_type", "__int_to_time", None)),
   432         (("ANY_INT","ANY_BIT"),("ANY_DATE","TIME"), ("return_type", "__int_to_time", None)),
   428         (("ANY_REAL",),("ANY_DATE","TIME"), ("return_type", "__real_to_time", None)),
   433         (("ANY_REAL",),("ANY_DATE","TIME"), ("return_type", "__real_to_time", None)),
   429         (("ANY_STRING",), ("ANY_DATE","TIME"), ("return_type", "__string_to_time", None)),
   434         (("ANY_STRING",), ("ANY_DATE","TIME"), ("return_type", "__string_to_time", None)),
   430         # FROM_TIME
   435         # FROM_TIME