Back to FabImage Library website
You are here: Start » Function Reference » Hilscher » Hilscher_Channel_SlotRead_SInt16
Header: | ThirdPartySdk.h |
---|---|
Namespace: | fil |
Receives generic packet that can be filled with any data through Hilscher device.
Syntax
void fil::Hilscher_Channel_SlotRead_SInt16 ( fil::Hilscher_State& ioState, const ftl::Optional<ftl::String>& inBoardName, const int inChannelNumber, const int inSlot, const fil::DataEndianness::Type inDataEndianness, int& outData )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
ioState | Hilscher_State& | Object used to maintain state of the function. | |||
![]() |
inBoardName | const Optional<String>& | NIL | ||
![]() |
inChannelNumber | const int | 0 - 10 | ||
![]() |
inSlot | const int | 0 - 1000 | ||
![]() |
inDataEndianness | const DataEndianness::Type | BigEndian | ||
![]() |
outData | int& |
Remarks
Driver
- Windows driver (recommended 1.5.0.0) https://kb.hilscher.com/display/CIFXDRV/Versions+-+NXDRV-WIN
- SYCON.net for configuring slots, generating configuration files: https://kb.hilscher.com/display/SYCON/Version+History
For profinet: Firmware (recommended 3.13 series) https://kb.hilscher.com/display/PNS3V5/Version+History+-+V3.5+to+V3.x
Firmware needs to be uploaded to the card prior to opening any type of channel.
In case of failing to update the firmware, try to restart your computer.
inSlot
Slot as configured in Profinet/Hilscher softwareData direction
Slot direction is from the application perspective, different than in SYCON software. IN: in SYCON.net is marked as output OUT: in SYCON.net is marked as inputData endianness
Remember to check endianness on controller and device sides, most controllers will use big endian. Data written to the card will be converted by default to network order. (to big endian) Data read from the card will be converted to native byte order. (by default from big endian)Multithreaded environment
This function is not guaranteed to be thread-safe. When used in multithreaded environment, it has to be manually synchronized.