ACC-72EX User Manual
Appendix A – Setup Examples
131
M_HCCC0_HCF_PD0_OUT_CMD = M_HCCC0_HCF_PD0_OUT_CMD^1 // Toggling the CMD flag (^: XOR)
ENDIF
CLOSE
OPEN PLC 11 CLEAR
IF (M_HCCC0_NCF_PD0_IN_CMD = M_HCCC0_HCF_PD0_IN_ACK) // If CMD flag and ACK flags are
M_HCCC0_HCF_PD0_IN_ACK = M_HCCC0_HCF_PD0_IN_ACK ^ 1 // toggle the acknowledge bit
EndIF
CLOSE
i5=2
Ena plc1
M90->y:$6C4C0,0,16
;Write Address
m91->x:$6C4C0,0,16
;Write Address
M92->y:$6CA60,0,16
;Read Address
m93->x:$6CA60,0,16
;Read Address
M94->Y:$00405A,0,20
;address of M90
m95->Y:$00405B,0,20
;address of m91
M96->Y:$00405C,0,20
;address of M92
m97->Y:$00405D,0,20
;address of m93
The above PLCs require the following header files:
// MacroNameDefinition_$6C000.h
#define M_SI_abCookie_0_
M5000
#define M_SI_abCookie_1_
M5001
#define M_SI_abCookie_2_
M5002
#define M_SI_abCookie_3_
M5003
#define M_SI_ulDpmTotalSize
M5004
#define M_SI_ulDeviceNumber
M5005
#define M_SI_ulSerialNumber
M5006
#define M_SI_ausHwOptions_0_
M5007
#define M_SI_ausHwOptions_1_
M5008
#define M_SI_ausHwOptions_2_
M5009
#define M_SI_ausHwOptions_3_
M5010
#define M_SI_usManufacturer
M5011
#define M_SI_usProductionDate
M5012
#define M_SI_ulLicenseFlags1
M5013
#define M_SI_ulLicenseFlags2
M5014
#define M_SI_usNetxLicenseID
M5015
#define M_SI_usNetxLicenseFlags
M5016
#define M_SI_usDeviceClass
M5017
#define M_SI_bHwRevision
M5018
#define M_SI_bHwCompatibility
M5019
#define M_SI_bDevIdNumber
M5020
#define M_SCI_bChannelType
M5021
#define M_SCI_bSizePositionOfHandshake
M5022
#define M_SCI_bNumberOfBlocks
M5023
#define M_SCI_ulSizeOfChannel
M5024
#define M_SCI_usSizeOfMailbox
M5025
#define M_SCI_usMailboxStartOffset
M5026
#define M_HCI_bChannelType
M5027
#define M_HCI_ulSizeOfChannel
M5028
#define M_CC0I_bChannelType
M5029
#define M_CC0I_bChannelId
M5030
#define M_CC0I_bSizePositionOfHandshake
M5031
#define M_CC0I_bNumberOfBlocks
M5032
#define M_CC0I_ulSizeOfChannel
M5033
#define M_CC0I_usCommunicationClass
M5034
#define M_CC0I_usProtocolClass
M5035
#define M_CC0I_usConformanceClass
M5036
#define M_CC1I_bChannelType
M5037
#define M_CC1I_bChannelId
M5038
#define M_CC1I_bSizePositionOfHandshake
M5039