Operation Commands
Regwrite: regAddr, len, data
Write data to specified register address.
regAddr: Specify the register address to which value is written. Hexadecimal.len: Specify the length of data to be written. Decimal.data: Specify the data to be written. Hexadecimal.
Example:
RegWrite: 0x400, 2, 0x09c2
SMConfig: smId, phyAddr, len, controlByte, activate
Configure a SyncManager.
smId: Specify the SyncManager id which will be configured. Hexadecimal.phyAddr: Specify the physical start address of SyncManager. Hexadecimal.len: Specify the length of SyncManager. Decimal.controlByte: Specify the control byte of SyncManager. Hexadecimal.activate(0/1): Specify whether to activate this SyncManager or not.
Example:
SMConfig: 0x0,0x1000,256,0x26,1
SMConfig: 0x1,0x1200,256,0x22,1
SMConfig: 0x2,0x1400,17,0x64,1
SMConfig: 0x3,0x1600,25,0x20,1
SMClear
Clear all SyncManager configuration.
Example:
SMClear
FMMUConfig: fmmuId, phyAddr, len, type
Configure a FMMU.
fmmuId: Specify the FMMU id which will be configured. Hexadecimal.phyAddr: Specify the physical start address of FMMU. Hexadecimal.len: Specify the length of FMMU. Decimal.type: Specify the type of FMMU. 1: read, 2: write
Example:
FMMUConfig: 0x0,0x1400,17,2
FMMUConfig: 0x1,0x1600,25,1
FMMUClear
Clear all FMMU configuration.
Example:
FMMUClear
SDOUpload: index, subindex, addr, offset, size
Upload Sdo data and set the data to specified IO Output.
index: Specify the index of SDO. Hexadecimal.subindex: Specify the subindex of SDO. Hexadecimal.addr: Specify the start IO output address to where SDO data will be copied. Decimal.offset: Specify the offset start from specified addr to where SDO data will be copied. Decimal.size: Specify the size of data which will be copied. Decimal.
Example:
SDOUpload: 0x1100, 0x0, 0, 0, 4
SDODownload: index, subindex, len, data, enable
Download Sdo data to slave.
index: Specify the index of SDO. Hexadecimal.subindex: Specify the subindex of SDO. Hexadecimal.len: Specify the length of the data. The valid lengths are 1, 2, 3 and 4. Decimal.data: Specify the data which will be downloaded. Hexadecimal.enable(0/1): 0: Disable this SDODownload, 1: Enable this SDODownload.
Example:
SDODownload: 0x1c12, 0x0, 1, 0x00, 1
SdoCompleteDownload: index, waittime, data
Download Sdo data to slave with complete access.
index: Specify the index of SDO. Hexadecimal.waittime: Specify the wait time for the SDO download. Unit: ms. Decimal.data: Specify the data which will be downloaded by complete access. Splite each byte with a space. Hexadecimal.
Example:
SdoCompleteDownload: 0x1c12, 5000, 02 00 00 16 80 16
InitEoEDevice
Initialize the EoE device with the specified IP, Mac address, gateway and subnet mask in general specification area.
Example:
InitEoEDevice
InitAoEDevice: D.D.D.D.D.D
Initialize the AoE device with the specified NetId.
Example:
InitAoEDevice: 169.253.72.91.2.2
InitComBuffer: chnlId, buffSize
Initialize a Com buffer for the specified Com channel pair.
chnlId: Specify the channel pair id for which the buffer is initialized. Decimal.buffSize: Specify the size of buffer. Decimal.
Example:
InitComBuffer: 0, 524288
SoERead: drvNo, flags, idn, waitTime
Read SoE data and print out to the console.
drvNo: Specify the driver no. Decimal.flags: Specify the element flags. Hexadecimal.idn: Specify the identification number of the parameter. Decimal.waitTime: Specify maximum wait time of soe read. Use the default wait time 1 second if set 0. Decimal.
Example:
SoERead: 0, 0x40, 15, 0
SoEWrite: drvNo, flags, idn, waitTime, data
Write SoE data to slave.
drvNo: Specify the driver no. Decimal.flags: Specify the element flags. Hexadecimal.idn: Specify the identification number of the parameter. Decimal.waitTime: Specify maximum wait time of soe write. Use the default wait time 1 second if set 0. Decimal.data: Specify the data which will be written to SoE slave. Splite each byte with a space. Hexadecimal.
Example:
SoEWrite: 0, 0x40, 24, 0, 04 00 04 00 86 00 2F 00
AoERead: targetPort, indexGroup, indexOffset, readLength, waitTime, [ignoreError]
Read AoE data.
targetPort: Specify the target port. Decimal.indexGroup: Specify the index group. Hexadecimal.indexOffset: Specify the index offset. Hexadecimal.readLength: Specify the read length. Decimal.waitTime: Specify maximum wait time of aoe read. Use the default wait time 1 second if set 0. Decimal.[ignoreError]: Optional. Ignore error if set 1.
Example:
AoERead: 200, 0xf830, 0x00, 100, 3000, 0
AoEWrite: targetPort, indexGroup, indexOffset, waitTime, data
Write AoE data to slave.
targetPort: Specify the target port. Decimal.indexGroup: Specify the index group. Hexadecimal.indexOffset: Specify the index offset. Hexadecimal.waitTime: Specify maximum wait time of aoe write. Use the default wait time 1 second if set 0. Decimal.data: Specify the data which will be written to AoE slave. Splite each byte with a space. Hexadecimal.
Example:
AoEWrite: 200, 0xf830, 0x00, 0, 01 00 03 F2 66 00