SPARTAN ARDUINO PLC 16DA
I am having trouble programming a 10V pwm signal on output Q0.6. According to the datasheet a pwm signal between 5v and 24V should be possible (24V supply is used). How do I code that the amplitude should be 10V. Can somebody maybe help me with the code? Thanks in advance.
Currently I have this:
int PWMPin = 3; // set output pin
void setup() {
pinMode(PWMPin, OUTPUT);
}
void loop() {
// send the square wave signal to the LED:
analogWrite(PWMPin, 255); // 255 for 100%dutycycle
}