name: - WSDO description: - Write data to the can controller creation date: - 18/6 -2002 ISAgraf 29/12-2002 Straton author: - Rune Rafn SP-Teknik APS. call: - ANALOG board: Specifies witch board in target data is sent to. Hilscher hardware supports up to 4 cards pr. target. Typically 0 - ANALOG Node: Specifies witch node on the can bus the data is for. CanOpen support up to 127 nodes. - ANALOG Index: Index in node to receive the data. - ANALOG Subindex: subindex for the specific index, to receive the data. - ANALOG Datasize: Length of data field in the specific subindex, in bytes. possible values: 1,2 and 4. - ANALOG Data: Data to sendt to node. - ANALOG Timeout: Max time to wait for function in milliseconds. Timeout is used at least twice in this function. Max 100ms. return: - Boolean Ok: returns true if write is successful, false if an error occurred. prototype: - notes: - example: - write data : 1234 to index 24743 subindex 0 in node 2, connected to board 0, the command would look like the following: return := WSDO(0,2,24743,0,4,1234,100) all values are in decimal. If the function returns ok, the data is passed on to the node, and the node has responded with a non error answer.