8/15/2022 9:39 AM | |
Joined: 1/13/2020 Last visit: 2/6/2025 Posts: 4 Rating:
|
Goodmorning, i am using a siemens s7-1214 to communicate with a fanuc robot with Ethernet IP. this al works but i have 1 problem. the data i get from the robot and the data i need to send is in Usint. and i want to convert this to Bool i have got a manual from Fanuc how to convert this but this is by using the block 'BLKMOV' (see attachment) and this block isn't available in the s7-1200. does anybody know how to do this with the 1200 or does anybody have already a solution for this? Thank you in advance! Kind regards, Richard Havermans AttachmentSiemens_Ethernet-IP_scanner_[Tia_USInt_To_Boolarray].pdf (357 Downloads) |
8/15/2022 10:44 AM | |
Joined: 1/21/2013 Last visit: 9/15/2025 Posts: 4110 Rating:
|
Hi Richard Havermans, I'm not familiar with the LCCF_EnetScanner function block from the application example 109782314 and EtherNet/IP. So maybe my answer is not feasible. As far as I understand the document you provided, 8 bits of in- and outputs are combined to an USInt value. So, me first approach would be to change the Array of USInt to an Array of Bool. But maybe the LCCF_EnetScanner function block could not handle this (I found nothing regarding the data types in the documentation). So the next approach would be to change the data type from USInt to Byte and use the SCATTER_BLK instruction. Kind regards |
8/15/2022 12:51 PM | |
Joined: 1/21/2013 Last visit: 9/15/2025 Posts: 4110 Rating:
|
Hi Richard Havermans, please verify your PLC is configured with firmware V4.5 inside the project. If not, please change the version. If possible, you should also upgrade the project and the instructions and update the program in the current PLC. Kind regards |
8/15/2022 1:23 PM | |
Joined: 1/13/2020 Last visit: 2/6/2025 Posts: 4 Rating:
|
Thank you, it is working! and i didn't need to convert the usint to byte. just use the usint as input and it already works |
Follow us on